From b4f79c22e84d0c4a2e7dd6686acf8f676b8ccc1c Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Mon, 24 Mar 2025 12:00:09 -0700 Subject: [PATCH] use jpg extension for custom nodes --- src/components/templates/TemplateWorkflowCard.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/templates/TemplateWorkflowCard.vue b/src/components/templates/TemplateWorkflowCard.vue index 157ea89df..f7212c77c 100644 --- a/src/components/templates/TemplateWorkflowCard.vue +++ b/src/components/templates/TemplateWorkflowCard.vue @@ -112,7 +112,9 @@ const getThumbnailUrl = (index = '') => { // For templates from custom nodes, multiple images is not yet supported const indexSuffix = sourceModule === 'default' && index ? `-${index}` : '' - return `${basePath}${indexSuffix}.${template.mediaSubtype}` + const extension = sourceModule === 'default' ? template.mediaSubtype : 'jpg' + + return `${basePath}${indexSuffix}.${extension}` } const baseThumbnailSrc = computed(() =>