diff --git a/webui/react/src/pages/F_ExpList/F_ExperimentList.tsx b/webui/react/src/pages/F_ExpList/F_ExperimentList.tsx index f50e20c1d6d..637b15150d0 100644 --- a/webui/react/src/pages/F_ExpList/F_ExperimentList.tsx +++ b/webui/react/src/pages/F_ExpList/F_ExperimentList.tsx @@ -318,8 +318,7 @@ const F_ExperimentList: React.FC = ({ 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) => { diff --git a/webui/react/src/pages/FlatRuns/FlatRuns.tsx b/webui/react/src/pages/FlatRuns/FlatRuns.tsx index e14eb3bbe29..049144ba42a 100644 --- a/webui/react/src/pages/FlatRuns/FlatRuns.tsx +++ b/webui/react/src/pages/FlatRuns/FlatRuns.tsx @@ -558,8 +558,7 @@ const FlatRuns: React.FC = ({ 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;