From bf23629905f62e45511f287648d91b324d90de61 Mon Sep 17 00:00:00 2001 From: ThinLiquid Date: Thu, 18 Jan 2024 11:10:08 +0000 Subject: [PATCH] style: applied ts-standard formatting --- src/system/apps/Store.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/system/apps/Store.ts b/src/system/apps/Store.ts index 3e4b308..9025f05 100644 --- a/src/system/apps/Store.ts +++ b/src/system/apps/Store.ts @@ -34,7 +34,7 @@ const Store: Process = { const div = new HTML(win.content).qs('div') repos.forEach(async (repo: string, index: number) => { - const repoDiv = div.qsa('div')[index] + const repoDiv = div?.qsa('div')?.[index] repoDiv?.html('') fetch(`${process.kernel.config.SERVER as string}/cors/?url=${repo}`) .then(async res => await res.json()) @@ -91,6 +91,7 @@ const Store: Process = { button ) ) + // @ts-expect-error .appendTo(repoDiv) }) })