From 406b973654650cd09f619c14bbebb297275588f5 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 28 Nov 2024 18:09:42 +0200 Subject: [PATCH] don't fallback to first style if none specified --- src/modules/interface.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/interface.js b/src/modules/interface.js index 089e8299..26bfe295 100644 --- a/src/modules/interface.js +++ b/src/modules/interface.js @@ -339,6 +339,9 @@ const interfaceMod = { let fetchFunc = index[result.nameUsed] // Fallbacks if (!fetchFunc) { + if (resource === 'style' || resource === 'palette') { + return result + } const newName = Object.keys(index)[0] fetchFunc = index[newName] console.warn(`${capitalizedResource} with id '${state.styleNameUsed}' not found, trying back to '${newName}'`)