You've already forked AstralRinth
forked from didirus/AstralRinth
Fix "Icon select" function
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user