Skip to content

Commit 3e95204

Browse files
committed
refac
1 parent 7aa7bbc commit 3e95204

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/lib/components/layout/Sidebar/ChatItem.svelte

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@
7878
let chat = null;
7979
8080
let mouseOver = false;
81-
let draggable = false;
82-
$: if (mouseOver) {
83-
loadChat();
84-
}
8581
8682
const loadChat = async () => {
8783
if (!chat) {
@@ -375,7 +371,7 @@
375371
id="sidebar-chat-group"
376372
bind:this={itemElement}
377373
class=" w-full {className} relative group"
378-
draggable={draggable && !confirmEdit}
374+
draggable={!confirmEdit}
379375
>
380376
{#if confirmEdit}
381377
<div

0 commit comments

Comments
 (0)