diff --git a/ui/components/PresetForm.vue b/ui/components/PresetForm.vue index 0cbd7439..64dc703d 100644 --- a/ui/components/PresetForm.vue +++ b/ui/components/PresetForm.vue @@ -331,7 +331,7 @@ const importItem = async () => { try { 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'}'.`) return }