diff --git a/src/lang/en.ts b/src/lang/en.ts index e019d514..b24fdf57 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -22,6 +22,7 @@ export const languageEnglish = { onlyOneChat: 'There must be least one chat', alreadyCharInGroup: "There is already a character with the same name in the group.", noUserIcon: "You must set your icon first.", + emptyText: "Text is empty.", }, showHelp: "Show Help", help:{ diff --git a/src/lib/SideBars/CharConfig.svelte b/src/lib/SideBars/CharConfig.svelte index d7e048ee..cccc6249 100644 --- a/src/lib/SideBars/CharConfig.svelte +++ b/src/lib/SideBars/CharConfig.svelte @@ -397,6 +397,12 @@ { if(currentChar.type === 'character'){ + if(currentChar.data.inlayViewScreen || currentChar.data.additionalAssets === undefined){ + currentChar.data.additionalAssets = [] + }else if(!currentChar.data.inlayViewScreen || currentChar.data.additionalAssets.length === 0){ + currentChar.data.additionalAssets = undefined + } + currentChar.data = updateInlayScreen(currentChar.data) } }}/>