Skip to content

Commit

Permalink
#19474: fix the async export csv not happening in lineage (#19397)
Browse files Browse the repository at this point in the history
* fix lineage playwrigt flaky test

* increase the timer

* fix the async export issue

* remove the timer

* minor revert
  • Loading branch information
Ashish8689 authored Jan 22, 2025
1 parent 51bdaac commit 68c3246
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ export const EntityExportModalProvider = ({
}
try {
setDownloading(true);
// assigning the job data to ref here, as exportData.onExport may take time to return the data
// and websocket connection may be respond before that, so we need to keep the job data in ref
// to handle the download
csvExportJobRef.current = {
fileName: fileName,
};
const data = await exportData.onExport(exportData.name);

if (isString(data)) {
Expand Down

0 comments on commit 68c3246

Please sign in to comment.