From 415868846cdcde7f4b11dde2d838bc4997124bee Mon Sep 17 00:00:00 2001 From: Rizky Date: Thu, 18 Jul 2024 15:22:48 +0700 Subject: [PATCH] fix --- app/web/src/nova/vi/render/script/item-dev.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/web/src/nova/vi/render/script/item-dev.ts b/app/web/src/nova/vi/render/script/item-dev.ts index 6ce8db25..bf042fbd 100644 --- a/app/web/src/nova/vi/render/script/item-dev.ts +++ b/app/web/src/nova/vi/render/script/item-dev.ts @@ -48,11 +48,6 @@ export const devItem = ( ) => { const added = _added || {}; const id = mitem.get("id") || ""; - if (added[id]) { - console.error(added); - throw new Error("already added " + id); - return added[id]; - } if (!w.prasiEditDevItem) { w.prasiEditDevItem = {}; @@ -349,9 +344,6 @@ export const devItem = ( ? added[parent_id] : devItem(metas, parent_meta, page_id, added); - if (added[parent_id]) { - throw new Error("wi"); - } return { item, child_type: "child",