From 93698edb732fe691cd3e04a44d3eaab3385ac9ec Mon Sep 17 00:00:00 2001 From: hashcoko Date: Wed, 29 Nov 2023 01:30:11 +0900 Subject: [PATCH] Fixed a bug where checking an inlay in the emotion bot would delete all assets. Signed-off-by: hashcoko --- src/lib/SideBars/CharConfig.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/SideBars/CharConfig.svelte b/src/lib/SideBars/CharConfig.svelte index cccc6249..e174d4f1 100644 --- a/src/lib/SideBars/CharConfig.svelte +++ b/src/lib/SideBars/CharConfig.svelte @@ -397,9 +397,9 @@ { if(currentChar.type === 'character'){ - if(currentChar.data.inlayViewScreen || currentChar.data.additionalAssets === undefined){ + if(currentChar.data.inlayViewScreen && currentChar.data.additionalAssets === undefined){ currentChar.data.additionalAssets = [] - }else if(!currentChar.data.inlayViewScreen || currentChar.data.additionalAssets.length === 0){ + }else if(!currentChar.data.inlayViewScreen && currentChar.data.additionalAssets.length === 0){ currentChar.data.additionalAssets = undefined }