Skip to content

Commit

Permalink
pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rushtong committed Feb 8, 2024
1 parent 064e170 commit 37e1856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/DatasetSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export const DatasetSearch = (props) => {
if (!loaded) {
if (institutionSet) {
Notifications.showError({ text: 'You must set an institution in your profile to view the `myinstitution` data library' });
//props.history.push('/profile');
props.history.push('/profile');
return;
}
try {
Expand All @@ -218,7 +218,7 @@ export const DatasetSearch = (props) => {
}
};
init();
}, [loaded, institutionSet, fullQuery]);
}, [loaded, institutionSet, fullQuery, props.history]);
return (
loading ?
<Box sx={{ display: 'flex', justifyContent: 'center', alignItems: 'center', height: '50vh' }}>
Expand Down

0 comments on commit 37e1856

Please sign in to comment.