fix(ui): fix non-nodes validation logic being applied to nodes invoke button

This commit is contained in:
psychedelicious 2023-09-05 12:44:39 +10:00
parent 52bd2bbb13
commit 8b305651f9

View File

@ -31,7 +31,8 @@ const selector = createSelector(
reasons.push('No initial image selected'); reasons.push('No initial image selected');
} }
if (activeTabName === 'nodes' && nodes.shouldValidateGraph) { if (activeTabName === 'nodes') {
if (nodes.shouldValidateGraph) {
if (!nodes.nodes.length) { if (!nodes.nodes.length) {
reasons.push('No nodes in graph'); reasons.push('No nodes in graph');
} }
@ -77,6 +78,7 @@ const selector = createSelector(
} }
}); });
}); });
}
} else { } else {
if (!model) { if (!model) {
reasons.push('No model selected'); reasons.push('No model selected');