Merge pull request #3724 from SillyTavern/fix/expressions-upload-new Fix not being able to upload sprite when no sprite existed for an expression
Signed| @@ -1814,7 +1814,7 @@ async function onClickExpressionUpload(event) { | |||
| 1814 | } | 1814 | } |
| 1815 | } | 1815 | } |
| 1816 | } else { | 1816 | } else { |
| 1817 | spriteName = withoutExtension(clickedFileName); | 1817 | spriteName = withoutExtension(expression); |
| 1818 | } | 1818 | } |
| 1819 | 1819 | ||
| 1820 | if (!spriteName) { | 1820 | if (!spriteName) { |