This commit is contained in:
Timothy Jaeryang Baek
2025-06-09 00:53:16 +04:00
parent c59b4cf379
commit 7969d8e8f3
4 changed files with 24 additions and 20 deletions
@@ -237,7 +237,11 @@
bind:show={showMenu}
model={item.model}
toggleSidebarHandler={() => {
pinnedModels.set([...new Set([...$pinnedModels, item.model.id])]);
if ($pinnedModels.includes(item.model.id)) {
pinnedModels.set($pinnedModels.filter((id) => id !== item.model.id));
} else {
pinnedModels.set([...new Set([...$pinnedModels, item.model.id])]);
}
}}
copyLinkHandler={() => {
copyLinkHandler(item.model);