fix: don't render stuff we don't support

This commit is contained in:
zkldi
2022-12-21 10:32:26 +00:00
parent 59b7c118c2
commit bbfed8f8ec
@@ -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 (