use jpg extension for custom nodes

This commit is contained in:
Christian Byrne
2025-03-24 12:00:09 -07:00
parent 5bee36a73e
commit b4f79c22e8

View File

@@ -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(() =>