From f17a27d35c918c9107364eb54c2511c10dd0e0ae Mon Sep 17 00:00:00 2001 From: arabcoders Date: Fri, 4 Apr 2025 02:08:11 +0300 Subject: [PATCH] fixed bug preventing the user from importing a preset --- ui/components/PresetForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }