Minor: Prevent Multiple CSV export download if no active job is present (#18944)

This commit is contained in:
Sachin Chaurasiya 2024-12-06 19:29:25 +05:30 committed by GitHub
parent 16875853a0
commit 99970220d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -114,6 +114,10 @@ export const EntityExportModalProvider = ({
const handleCSVExportJobUpdate = (
response: Partial<CSVExportWebsocketResponse>
) => {
// If multiple tab is open, then we need to check if the tab has active job or not before initiating the download
if (!csvExportJobRef.current) {
return;
}
const updatedCSVExportJob: Partial<CSVExportJob> = {
...response,
...csvExportJobRef.current,