fix(ui): handle null chat in folder drop handler for cross-account drag (#25928)

This commit is contained in:
G30 authored and GitHub committed 2026-06-17 00:26:35 +02:00
1 parent 232421f40b
commit e5ed45fb20
1 file changed
+2
@@ -176,6 +176,7 @@
}); });
} }
if (chat) {
// Move the chat // Move the chat
const res = await updateChatFolderIdById( const res = await updateChatFolderIdById(
localStorage.token, localStorage.token,
@@ -196,6 +197,7 @@
dispatch('update'); dispatch('update');
} }
} }
}
} catch (error) { } catch (error) {
console.log('Error parsing dataTransfer:', error); console.log('Error parsing dataTransfer:', error);
} }