This commit is contained in:
Rizky 2024-02-19 11:58:54 +07:00
parent 44488f1904
commit b9a877911e
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import { NodeRender } from "@minoru/react-dnd-treeview"; import { NodeRender } from "@minoru/react-dnd-treeview";
import { useGlobal, useLocal } from "web-utils"; import { deepClone, useGlobal, useLocal } from "web-utils";
import { IContent } from "../../../../../utils/types/general"; import { IContent } from "../../../../../utils/types/general";
import { Loading } from "../../../../../utils/ui/loading"; import { Loading } from "../../../../../utils/ui/loading";
import { getMetaById } from "../../../logic/active/get-meta"; import { getMetaById } from "../../../logic/active/get-meta";
@ -244,7 +244,7 @@ function bytesToHumanFileSize(bytes: number): string {
} }
const hydrateItem = (p: PG, item: IItem) => { const hydrateItem = (p: PG, item: IItem) => {
const result = structuredClone(item); const result = deepClone(item);
if (result.childs) { if (result.childs) {
for (const [k, child] of Object.entries(result.childs)) { for (const [k, child] of Object.entries(result.childs)) {