if exportRecord not present set state to init

This commit is contained in:
Abhinav 2023-03-28 17:57:11 +05:30
parent 40baf9c412
commit 0de851395b

View file

@ -104,6 +104,7 @@ export default function ExportModal(props: Props) {
try {
const exportRecord = await exportService.getExportRecord();
if (!exportRecord) {
setExportStage(ExportStage.INIT);
return;
}
setExportStage(exportRecord.stage);