mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: replace crypto.randomUUID with generateId in pipeline/automation
This commit is contained in:
@@ -16,7 +16,7 @@ import {
|
||||
import { type SetStateAction, useCallback, useEffect, useMemo, useState } from "react";
|
||||
import { SearchBar } from "@/components/common/search-bar";
|
||||
import { apiGet } from "@/lib/api";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { cn, generateId } from "@/lib/utils";
|
||||
import { PipelineStepSettings } from "./pipeline-step-settings";
|
||||
|
||||
/** Tools that can be used as pipeline steps (excludes pipeline/batch/multi-file tools). */
|
||||
@@ -101,7 +101,7 @@ export function PipelineBuilder({
|
||||
const addStep = useCallback(
|
||||
(toolId: string) => {
|
||||
const step: PipelineStep = {
|
||||
id: crypto.randomUUID(),
|
||||
id: generateId(),
|
||||
toolId,
|
||||
settings: {},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user