From 998c218b5fe8814d6c437af90bf521b177307b1a Mon Sep 17 00:00:00 2001 From: Andra Constantin Date: Tue, 12 Nov 2024 12:57:32 -0500 Subject: [PATCH] remove unreachable code --- src/components/ProjectExport/ExportButton.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/components/ProjectExport/ExportButton.tsx b/src/components/ProjectExport/ExportButton.tsx index fe3d9c60f1..da42b86fc0 100644 --- a/src/components/ProjectExport/ExportButton.tsx +++ b/src/components/ProjectExport/ExportButton.tsx @@ -1,6 +1,5 @@ import { Tooltip } from "@mui/material"; import { ButtonProps } from "@mui/material/Button"; -import { enqueueSnackbar } from "notistack"; import { ReactElement, useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; @@ -24,13 +23,7 @@ export default function ExportButton(props: ExportButtonProps): ReactElement { const { t } = useTranslation(); async function exportProj(): Promise { - await isFrontierNonempty(props.projectId).then(async (isNonempty) => { - if (isNonempty) { - await dispatch(asyncExportProject(props.projectId)); - } else { - enqueueSnackbar(t("projectExport.cannotExportEmpty")); - } - }); + await dispatch(asyncExportProject(props.projectId)); } const exportResult = useAppSelector(