fix(ui): handle null chat in folder drop handler for cross-account drag (#25928)
This commit is contained in:
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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user