fix: completely remove state from untiered

This commit is contained in:
2026-03-06 23:41:05 +07:00 Unverified
parent 61755ed664
commit 72b3cb138a
2 changed files with 2 additions and 9 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ export function Draggable({
{...attributes}
onContextMenu={(ev) => {
ev.preventDefault();
setPanelOpen((x) => !x);
if (state) setPanelOpen((x) => !x);
}}
>
<div className="relative">
+1 -8
View File
@@ -701,14 +701,7 @@ export function TierList({
const cid = id.split("#")[0];
const ch = chars.find((c) => c.id === cid);
if (!ch) return null;
return (
<Draggable
key={id}
cid={id}
char={ch}
state={states.find((s) => s.ref === cid)}
/>
);
return <Draggable key={id} cid={id} char={ch} />;
})
.filter(Boolean)}
</Untiered>