From 51e02f817988affd75e03df5b1dec1ef1a7d2d67 Mon Sep 17 00:00:00 2001 From: space-nuko <24979496+space-nuko@users.noreply.github.com> Date: Fri, 26 May 2023 19:50:07 -0500 Subject: [PATCH] Fix subgraphs queue string --- src/lib/components/ComfyQueue.svelte | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib/components/ComfyQueue.svelte b/src/lib/components/ComfyQueue.svelte index 3b66d04..907ce86 100644 --- a/src/lib/components/ComfyQueue.svelte +++ b/src/lib/components/ComfyQueue.svelte @@ -144,9 +144,11 @@ if (entry.extraData?.workflowTitle != null) { message = `${entry.extraData.workflowTitle}` } - const subgraphsString = subgraphs.join(', ') - if (subgraphsString.length > 0) - message += ` (${subgraphsString})` + if (subgraphs) { + const subgraphsString = subgraphs.join(', ') + if (subgraphsString.length > 0) + message += ` (${subgraphsString})` + } let submessage = `Nodes: ${Object.keys(entry.prompt).length}`