safety check on upload on sprite name
| @@ -1699,7 +1699,8 @@ async function onClickExpressionUpload(event) { | |||
| 1699 | const handleExpressionUploadChange = async (e) => { | 1699 | const handleExpressionUploadChange = async (e) => { |
| 1700 | const file = e.target.files[0]; | 1700 | const file = e.target.files[0]; |
| 1701 | 1701 | ||
| 1702 | if (!file) { | 1702 | if (!file || !file.name) { |
| 1703 | console.debug('No valid file selected'); | ||
| 1703 | return; | 1704 | return; |
| 1704 | } | 1705 | } |
| 1705 | 1706 | ||