Replace Date.now().toString() with crypto.randomUUID() for ID generation

This commit is contained in:
2026-06-22 21:09:54 +00:00
parent a2cb86bd66
commit 4b2ee0bc75
+1 -1
View File
@@ -16,7 +16,7 @@ class ChairTool extends Tool {
const y = event.clientY - this.height / 2; const y = event.clientY - this.height / 2;
this.yjsDoc.createElement({ this.yjsDoc.createElement({
id: Date.now().toString(), id: crypto.randomUUID(),
type: 'chair', type: 'chair',
layerId: 'default', layerId: 'default',
x, x,