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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user