From 7cadaa166368679695018128c340aa95133f9402 Mon Sep 17 00:00:00 2001 From: Kyle Kemp Date: Mon, 19 Aug 2024 13:25:14 -0500 Subject: [PATCH] do not strip ids when exporting mod --- src/app/helpers/exporter.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/app/helpers/exporter.ts b/src/app/helpers/exporter.ts index 753474e..ed496b2 100644 --- a/src/app/helpers/exporter.ts +++ b/src/app/helpers/exporter.ts @@ -1,21 +1,9 @@ import { IModKit } from '../../interfaces'; import { formatItems, formatNPCs, formatSpawners } from './export'; -function stripIds(modData: IModKit) { - Object.keys(modData).forEach((modKey) => { - const key = modKey as keyof IModKit; - - if (key === 'meta') return; - - modData[key].forEach((ident: any) => delete ident._id); - }); -} - export function formatMod(modData: IModKit): IModKit { const backup = structuredClone(modData); - stripIds(modData); - const exported: IModKit = { meta: { ...structuredClone(modData.meta),