fix(ui): always check batch sizes when there is at least 1 batch node

Not sure why I had this only checking if the size was >1. Doesn't make sense...
This commit is contained in:
psychedelicious
2025-02-26 14:38:41 +10:00
parent 7c574719e5
commit fae23a744f

View File

@@ -212,7 +212,7 @@ const getReasonsWhyCannotEnqueueWorkflowsTab = async (arg: {
}
}
if (batchNodes.length > 1) {
if (batchNodes.length > 0) {
const batchSizes: number[] = [];
const groupedBatchNodes = groupBy(batchNodes, (node) => node.data.inputs['batch_group_id']?.value);
for (const [batchGroupId, batchNodes] of Object.entries(groupedBatchNodes)) {