* enforceAppendOnly for options, votes and deadlines

This commit is contained in:
2026-05-04 23:02:54 +02:00
parent 2abc0f8930
commit 043e813864
3 changed files with 38 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
import * as Y from "yjs";
import { getDeadline } from "../state";
import { enforceAppendOnly } from "../yDocUtil";
const DEADLINE_DURATION_MS = 2 * 60 * 1000; // 2 minutes
@@ -79,7 +80,7 @@ export function DeadlineTimer(
onClearDeadline();
});
deadlineMap.observe(() => render());
deadlineMap.observe(enforceAppendOnly(deadlineMap,render));
render();
return wrapper;