fix: completely remove state from untiered
This commit is contained in:
@@ -119,7 +119,7 @@ export function Draggable({
|
||||
{...attributes}
|
||||
onContextMenu={(ev) => {
|
||||
ev.preventDefault();
|
||||
setPanelOpen((x) => !x);
|
||||
if (state) setPanelOpen((x) => !x);
|
||||
}}
|
||||
>
|
||||
<div className="relative">
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user