mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
remove object.fromEntries (#933)
This commit is contained in:
parent
f393486eed
commit
450a024f5c
3 changed files with 15 additions and 10 deletions
|
@ -98,7 +98,9 @@ function _duplicateElement(val: any, depth: number = 0) {
|
|||
return val;
|
||||
}
|
||||
|
||||
export function duplicateElement(element: ReturnType<typeof newElement>) {
|
||||
export function duplicateElement(
|
||||
element: ReturnType<typeof newElement>,
|
||||
): ReturnType<typeof newElement> {
|
||||
const copy = _duplicateElement(element);
|
||||
copy.id = nanoid();
|
||||
copy.seed = randomSeed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue