fixed bug preventing the user from importing a preset
This commit is contained in:
parent
d03e04db19
commit
f17a27d35c
1 changed files with 1 additions and 1 deletions
|
|
@ -331,7 +331,7 @@ const importItem = async () => {
|
||||||
try {
|
try {
|
||||||
const item = JSON.parse(val)
|
const item = JSON.parse(val)
|
||||||
|
|
||||||
if (item?._type || 'preset' !== item._type) {
|
if (!item?._type || 'preset' !== item._type) {
|
||||||
toast.error(`Invalid import string. Expected type 'preset', got '${item._type ?? 'unknown'}'.`)
|
toast.error(`Invalid import string. Expected type 'preset', got '${item._type ?? 'unknown'}'.`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue