Skip to content

Commit

Permalink
fix: update sort settings (#9665)
Browse files Browse the repository at this point in the history
  • Loading branch information
keita-determined authored Jul 17, 2024
1 parent 4b3a100 commit 274d763
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions webui/react/src/pages/F_ExpList/F_ExperimentList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,7 @@ const F_ExperimentList: React.FC<Props> = ({ project }) => {
if (!isLoadingSettings && settings.sortString) {
setSorts(parseSortString(settings.sortString));
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isLoadingSettings]);
}, [isLoadingSettings, settings.sortString]);

useEffect(() => {
return eagerSubscribe(projectSettingsObs, (ps, prevPs) => {
Expand Down
3 changes: 1 addition & 2 deletions webui/react/src/pages/FlatRuns/FlatRuns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,7 @@ const FlatRuns: React.FC<Props> = ({ projectId, workspaceId, searchId }) => {
if (!isLoadingSettings && settings.sortString) {
setSorts(parseSortString(settings.sortString));
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isLoadingSettings]);
}, [isLoadingSettings, settings.sortString]);

useEffect(() => {
let cleanup: () => void;
Expand Down

0 comments on commit 274d763

Please sign in to comment.