From 44a822cb107929b6c12963e4241f852b2e0822cd Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 10 Aug 2026 20:29:33 -0700 Subject: [PATCH] Actually, fix the action dropdown thing --- .../workflow-edit-dialog.component.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts b/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts index e9bc51488..ed66e61dc 100644 --- a/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts +++ b/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts @@ -552,6 +552,8 @@ export class WorkflowEditDialogComponent this.checkRemovalActionFields(this.objectForm.value) } + private allowedActionTypes: typeof WORKFLOW_ACTION_OPTIONS = null + private getAllowedActionTypes() { let allowed = WORKFLOW_ACTION_OPTIONS @@ -574,6 +576,13 @@ export class WorkflowEditDialogComponent allowed = allowed.filter((a) => a.id !== WorkflowActionType.RemoteOcr) } + if ( + this.allowedActionTypes?.length === allowed.length && + this.allowedActionTypes.every((a, i) => a.id === allowed[i].id) + ) { + return this.allowedActionTypes + } + this.allowedActionTypes = allowed return allowed }