Commit 1dd518a1 authored by timel's avatar timel Committed by Chunchi Che

fix: placeStore clear

parent 3e9be707
......@@ -36,17 +36,12 @@ export const placeStore = proxy({
placeInteractivity;
},
clearAll() {
placeStore.inner[MZONE].me = placeStore.inner[MZONE].me.map(
() => undefined
);
placeStore.inner[MZONE].op = placeStore.inner[MZONE].op.map(
() => undefined
);
placeStore.inner[SZONE].me = placeStore.inner[SZONE].me.map(
() => undefined
);
placeStore.inner[SZONE].op = placeStore.inner[SZONE].op.map(
() => undefined
);
(["me", "op"] as const).forEach((who) => {
([MZONE, SZONE] as const).forEach((where) => {
placeStore.inner[where][who] = placeStore.inner[where][who].map(
() => undefined
);
});
});
},
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment