Skip to content

Commit 6348f82

Browse files
authored
fix: fixed documents mapping (#3315)
1 parent 6bb5e10 commit 6348f82

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

services/workflows-service/src/workflow/workflow.service.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2682,7 +2682,11 @@ export class WorkflowService {
26822682
);
26832683
const document = runtimeData?.context?.documents?.find(
26842684
(document: DefaultContextSchema['documents'][number]) => {
2685-
return document._document?.id === documentId;
2685+
if (document?._document?.id) {
2686+
return document._document?.id === documentId;
2687+
}
2688+
2689+
return document.id === documentId;
26862690
},
26872691
);
26882692

0 commit comments

Comments
 (0)