-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47ee66e
commit 935cb6c
Showing
3 changed files
with
2 additions
and
3 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
frontend/app-development/features/processEditor/bpmnHandlerUtils/bpmnHandlerUtils.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import type { LayoutSets } from 'app-shared/types/api/LayoutSetsResponse'; | ||
|
||
export const getLayoutSetIdFromTaskId = (elementId: string, layoutSets: LayoutSets) => { | ||
const layoutSet = layoutSets.sets.find((set) => set.tasks[0] === elementId); | ||
const layoutSet = layoutSets.sets.find((set) => set.tasks && set?.tasks[0] === elementId); | ||
return layoutSet?.id; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters