From a0e8129cf370b17a2b2505ba772cd65e4e1242b0 Mon Sep 17 00:00:00 2001 From: Ben Loe Date: Thu, 5 Sep 2024 16:10:58 -0400 Subject: [PATCH] #9095 Fix Mods page table filters (other than active) (#9096) * fix mods table filters * pr nit --------- Co-authored-by: Ben Loe --- src/extensionConsole/pages/mods/ModsPageSidebar.tsx | 4 ++-- src/extensionConsole/pages/mods/listView/ListView.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/extensionConsole/pages/mods/ModsPageSidebar.tsx b/src/extensionConsole/pages/mods/ModsPageSidebar.tsx index 223a39750d..c3f13855b5 100644 --- a/src/extensionConsole/pages/mods/ModsPageSidebar.tsx +++ b/src/extensionConsole/pages/mods/ModsPageSidebar.tsx @@ -66,12 +66,12 @@ export const MODS_PAGE_TABS: ModTabsMap = { personal: { key: "Personal", tabTitle: "Personal Mods", - filters: [{ id: "sharing.source.label", value: "Personal" }], + filters: [{ id: "sharingSource.label", value: "Personal" }], }, public: { key: "Public", tabTitle: "Public Mods", - filters: [{ id: "sharing.source.label", value: "Public" }], + filters: [{ id: "sharingSource.label", value: "Public" }], }, getStarted: { key: "Get Started", diff --git a/src/extensionConsole/pages/mods/listView/ListView.tsx b/src/extensionConsole/pages/mods/listView/ListView.tsx index 695620fb99..b4989be581 100644 --- a/src/extensionConsole/pages/mods/listView/ListView.tsx +++ b/src/extensionConsole/pages/mods/listView/ListView.tsx @@ -51,7 +51,7 @@ const ListView: React.VoidFunctionComponent = ({ // Re-render the list when expandedRows changes. useEffect(() => { listRef.current?.resetAfterIndex(0); - }, [expandedRows]); + }, [expandedRows, listRef]); return (