We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a641ec commit a156adeCopy full SHA for a156ade
src/pages/News/NewsPage.tsx
@@ -68,7 +68,6 @@ const NewsPage: React.FC = () => {
68
}, []);
69
70
useEffect(() => {
71
- // Don't decide active category until categories have been loaded
72
if (!categories.length) return;
73
if (categoryParam) {
74
const formatted = categoryParam.toLowerCase().replace(/-/g, ' ').trim();
@@ -89,7 +88,6 @@ const NewsPage: React.FC = () => {
89
88
}, [location.search]);
90
91
92
- // Wait until posts/categories load before syncing URL to avoid overwriting category from URL
93
94
const pathCat =
95
activeCategory === 'All'
0 commit comments