mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-08 05:26:19 +00:00
Minor: Prevent Multiple CSV export download if no active job is present (#18944)
This commit is contained in:
parent
16875853a0
commit
99970220d3
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user