From bbfed8f8ecd3ab17cbaa7c4ac444ad1f91dd0fde Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Wed, 21 Dec 2022 10:32:22 +0000 Subject: [PATCH] fix: don't render stuff we don't support --- client/src/app/pages/dashboard/import/ImportPage.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/app/pages/dashboard/import/ImportPage.tsx b/client/src/app/pages/dashboard/import/ImportPage.tsx index 0d84a7a82..52c2ce279 100644 --- a/client/src/app/pages/dashboard/import/ImportPage.tsx +++ b/client/src/app/pages/dashboard/import/ImportPage.tsx @@ -278,7 +278,11 @@ function ImportTypeInfoCard({ importType, }: { importType: FileUploadImportTypes | APIImportTypes; -}): JSX.Element { +}): JSX.Element | null { + if (TachiConfig.importTypes.includes(importType)) { + return null; + } + switch (importType) { case "api/arc-sdvx": return (