fixed bug preventing the user from importing a preset

This commit is contained in:
arabcoders 2025-04-04 02:08:11 +03:00
parent d03e04db19
commit f17a27d35c

View file

@ -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
}