Fix editor issue with unknown nodeTypes

This commit is contained in:
Jan Oberhauser 2022-02-05 16:52:13 +01:00
parent ff74feefe4
commit 9dbe2449fb

View file

@ -746,7 +746,8 @@ export const store = new Vuex.Store({
workflowTriggerNodes: (state, getters) => {
return state.workflow.nodes.filter(node => {
return getters.nodeType(node.type, node.typeVersion).group.includes('trigger');
const nodeType = getters.nodeType(node.type, node.typeVersion);
return nodeType && nodeType.group.includes('trigger');
});
},