Replace Date.now().toString() with crypto.randomUUID() for ID generation
This commit is contained in:
@@ -16,7 +16,7 @@ class ChairTool extends Tool {
|
||||
const y = event.clientY - this.height / 2;
|
||||
|
||||
this.yjsDoc.createElement({
|
||||
id: Date.now().toString(),
|
||||
id: crypto.randomUUID(),
|
||||
type: 'chair',
|
||||
layerId: 'default',
|
||||
x,
|
||||
|
||||
Reference in New Issue
Block a user