Fix "Icon select" function

This commit is contained in:
2024-09-01 20:53:37 +03:00
parent ad51ea6110
commit 07712e3ed4
3 changed files with 28 additions and 2 deletions

View File

@@ -379,7 +379,7 @@ const upload_icon = async () => {
],
})
icon.value = res ? res.path : null
icon.value = res ? res : null
if (!icon.value) return
display_icon.value = convertFileSrc(icon.value)

View File

@@ -581,7 +581,7 @@ async function setIcon() {
if (!value) return
icon.value = value.path
icon.value = value
await edit_icon(props.instance.path, icon.value).catch(handleError)
trackEvent('InstanceSetIcon')