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;
|
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user