mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Prevent app crash on empty manual flow config (#14438)
This commit is contained in:
@@ -31,7 +31,7 @@ export const useFlowsStore = defineStore({
|
||||
this.$reset();
|
||||
},
|
||||
getManualFlowsForCollection(collection: string): FlowRaw[] {
|
||||
return this.flows.filter((flow) => flow.trigger === 'manual' && flow.options?.collections.includes(collection));
|
||||
return this.flows.filter((flow) => flow.trigger === 'manual' && flow.options?.collections?.includes(collection));
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user