* enforceAppendOnly for options, votes and deadlines
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user