Skip to content

Commit 7d4aff0

Browse files
committed
modified: src/index.ts
1 parent b5f1438 commit 7d4aff0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default (
8484
| Record<string, unknown>[]
8585
| undefined,
8686
url = URL.createObjectURL(new Blob()),
87-
id = url.split("/").pop(),
87+
id = url.split("/").pop() ?? crypto.randomUUID(),
8888
index = the[keyIndex] as number,
8989
siblings = the[keySiblings] as Record<string, unknown>[];
9090
URL.revokeObjectURL(url);

0 commit comments

Comments
 (0)