diff --git a/frontend/src/HomePage/ExportAppModal.jsx b/frontend/src/HomePage/ExportAppModal.jsx index f1c86ad577..b407158026 100644 --- a/frontend/src/HomePage/ExportAppModal.jsx +++ b/frontend/src/HomePage/ExportAppModal.jsx @@ -12,6 +12,7 @@ export default function ExportAppModal({ title, show, closeModal, customClassNam const [versionId, setVersionId] = useState(undefined); const [exportTjDb, setExportTjDb] = useState(true); const [currentVersion, setCurrentVersion] = useState(undefined); + const [versionSelectLoading, setVersionSelectLoading] = useState(false); const [loading, setLoading] = useState(false); useEffect(() => { @@ -39,7 +40,7 @@ export default function ExportAppModal({ title, show, closeModal, customClassNam useEffect(() => { async function fetchAppTables() { - setLoading(true); + setVersionSelectLoading(true); try { if (!versionId) return; const fetchTables = await appsService.getTables(app.id); // this is used to get all tables @@ -75,7 +76,7 @@ export default function ExportAppModal({ title, show, closeModal, customClassNam }); closeModal(); } - setLoading(false); + setVersionSelectLoading(false); } fetchAppTables(); // eslint-disable-next-line react-hooks/exhaustive-deps @@ -209,7 +210,7 @@ export default function ExportAppModal({ title, show, closeModal, customClassNam Export All exportApp(app, versionId, exportTjDb, tables)} >