We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b969540 commit 8757953Copy full SHA for 8757953
src/index.ts
@@ -80,9 +80,11 @@ export default (
80
add: (pId: string) => {
81
const the = objLeaves[pId];
82
if (the) {
83
- const url = URL.createObjectURL(new Blob()),
84
- [id] = url.split("/").reverse(),
85
- children = the[keyChildren] as Record<string, unknown>[] | undefined,
+ const children = the[keyChildren] as
+ | Record<string, unknown>[]
+ | undefined,
86
+ url = URL.createObjectURL(new Blob()),
87
+ id = url.split("/").pop(),
88
index = the[keyIndex] as number,
89
siblings = the[keySiblings] as Record<string, unknown>[];
90
URL.revokeObjectURL(url);
0 commit comments