Skip to content

Commit

Permalink
fix: exportUtils pageOrder can be nullish, add optional chaining (#14425
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Jondyr authored Jan 16, 2025
1 parent abb868f commit 5c1b2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/packages/ux-editor/src/utils/exportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class ExportUtils {
formId: this.layoutSetName,
pages: [],
};
this.pageOrder.forEach((layoutName: string, index: number) => {
this.pageOrder?.forEach((layoutName: string, index: number) => {
exportForm.pages.push(this.generateLayoutExportFormat(layoutName, index));
});
return exportForm;
Expand Down

0 comments on commit 5c1b2b9

Please sign in to comment.