Prevent app crash on empty manual flow config (#14438)

This commit is contained in:
Rijk van Zanten
2022-07-14 22:33:24 +02:00
committed by GitHub
parent 72d849a389
commit d95c6ed3cd

View File

@@ -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));
},
},
});