Skip to content

Commit

Permalink
Add checks for page settings (#2307)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Tideman authored Sep 4, 2024
1 parent 5ce6856 commit a6d1d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utilities/workflow-create-disabled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const workflowCreateDisabled = (
const namespaceWriteDisabled = get(coreUser).namespaceWriteDisabled(
namespace ?? page.params.namespace,
);
if (page.data.settings.startWorkflowDisabled) return true;
if (page?.data?.settings?.startWorkflowDisabled) return true;

return namespaceWriteDisabled;
};

0 comments on commit a6d1d8a

Please sign in to comment.