fix single text element, unique id and tests

This commit is contained in:
Aakansha Doshi
2023-05-25 14:12:01 +05:30
parent 6c41e507db
commit 1c291f8b3d
4 changed files with 60 additions and 23 deletions

View File

@@ -471,7 +471,7 @@ export const deepCopyElement = <T extends ExcalidrawElement>(
* utility wrapper to generate new id. In test env it reuses the old + postfix
* for test assertions.
*/
const regenerateId = (
export const regenerateId = (
/** supply null if no previous id exists */
previousId: string | null,
) => {