Fixed a bug where checking an inlay in the emotion bot would delete all assets.

Signed-off-by: hashcoko <hashcoko@gmail.com>
This commit is contained in:
hashcoko
2023-11-29 01:30:11 +09:00
parent 2dd0ff79f5
commit 93698edb73

View File

@@ -397,9 +397,9 @@
<CheckInput bind:check={currentChar.data.inlayViewScreen} name={language.inlayViewScreen} onChange={() => {
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
}