From 752fcf49afb6a26e77b36b70c43ac8e607755da3 Mon Sep 17 00:00:00 2001 From: Dan Date: Mon, 5 Dec 2022 13:29:46 -0500 Subject: [PATCH] Use the identifier, not the id when locating a process model or dmn table. --- spiffworkflow-frontend/src/interfaces.ts | 3 +-- spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/spiffworkflow-frontend/src/interfaces.ts b/spiffworkflow-frontend/src/interfaces.ts index 42ba5335..3c3d7c12 100644 --- a/spiffworkflow-frontend/src/interfaces.ts +++ b/spiffworkflow-frontend/src/interfaces.ts @@ -12,9 +12,8 @@ export interface RecentProcessModel { } export interface ProcessReference { - id: string; // The unique id of the process or decision table. name: string; // The process or decision Display name. - identifier: string; + identifier: string; // The unique id of the process display_name: string; process_group_id: string; process_model_id: string; diff --git a/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx b/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx index 9ef71a7c..d117f798 100644 --- a/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx @@ -735,7 +735,7 @@ export default function ProcessModelEditDiagram() { if (processModel) { const files = processModel.files.filter((f) => f.type === type); files.some((file) => { - if (file.references.some((ref) => ref.id === id)) { + if (file.references.some((ref) => ref.identifier === id)) { matchFile = file; return true; }