We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bb5e10 commit 6348f82Copy full SHA for 6348f82
services/workflows-service/src/workflow/workflow.service.ts
@@ -2682,7 +2682,11 @@ export class WorkflowService {
2682
);
2683
const document = runtimeData?.context?.documents?.find(
2684
(document: DefaultContextSchema['documents'][number]) => {
2685
- return document._document?.id === documentId;
+ if (document?._document?.id) {
2686
+ return document._document?.id === documentId;
2687
+ }
2688
+
2689
+ return document.id === documentId;
2690
},
2691
2692
0 commit comments