Skip to content

Commit

Permalink
Revert "Add logs for debugging export notification (#1495)" (#1498)
Browse files Browse the repository at this point in the history
This reverts commit cdfbd52.
  • Loading branch information
zackcl authored May 3, 2024
1 parent cdfbd52 commit db7be37
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,6 @@ export class ExperimentEffects {
switchMap(({ experimentIds }) =>
this.experimentDataService.exportExperimentDesign(experimentIds).pipe(
tap(() => {
console.log('>>>> Export successful, displaying the notification!');
this.notificationService.showSuccess('Experiment Design JSON downloaded!');
}),
map((data: Experiment[]) => {
Expand All @@ -502,13 +501,9 @@ export class ExperimentEffects {
} else {
this.download(data[0].name + '.json', data[0], false);
}
console.log('>>>> Downloading successful!');
return experimentAction.actionExportExperimentDesignSuccess();
}),
catchError((error) => {
console.log('>>>> Export failed with Error:', error);
return [experimentAction.actionExportExperimentDesignFailure()]
})
catchError(() => [experimentAction.actionExportExperimentDesignFailure()])
)
)
)
Expand Down

0 comments on commit db7be37

Please sign in to comment.