mirror of
https://github.com/immich-app/immich.git
synced 2026-09-30 13:23:21 +08:00
fix: remove local-only step ids from workflow json (#29188)
This commit is contained in:
@@ -73,7 +73,13 @@
|
||||
let dragSourceId: string | undefined;
|
||||
|
||||
const workflowSummary = $derived({ name, description, trigger, steps });
|
||||
const workflowJsonContent = $derived<WorkflowJsonContent>({ name, description, enabled, trigger, steps });
|
||||
const workflowJsonContent = $derived<WorkflowJsonContent>({
|
||||
name,
|
||||
description,
|
||||
enabled,
|
||||
trigger,
|
||||
steps: steps.map(({ id: _, ...step }) => step),
|
||||
});
|
||||
|
||||
const hasChanges = $derived(
|
||||
enabled !== savedWorkflow.enabled ||
|
||||
|
||||
Reference in New Issue
Block a user