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({ ...@@ -36,17 +36,12 @@ export const placeStore = proxy({
placeInteractivity; placeInteractivity;
}, },
clearAll() { clearAll() {
placeStore.inner[MZONE].me = placeStore.inner[MZONE].me.map( (["me", "op"] as const).forEach((who) => {
() => undefined ([MZONE, SZONE] as const).forEach((where) => {
); placeStore.inner[where][who] = placeStore.inner[where][who].map(
placeStore.inner[MZONE].op = placeStore.inner[MZONE].op.map( () => undefined
() => undefined );
); });
placeStore.inner[SZONE].me = placeStore.inner[SZONE].me.map( });
() => undefined
);
placeStore.inner[SZONE].op = placeStore.inner[SZONE].op.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