Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update frontend/src/pages/SuperAdminPanel.jsx
Browse files
frontend/src/pages/SuperAdminPanel.jsx
CHANGED
|
@@ -139,15 +139,7 @@ const SuperAdminPanel = () => {
|
|
| 139 |
useEffect(() => {
|
| 140 |
try {
|
| 141 |
localStorage.setItem('superAdminActiveTab', activeTab);
|
| 142 |
-
|
| 143 |
-
if (searchParams.get('tab') !== activeTab) {
|
| 144 |
-
searchParams.set('tab', activeTab);
|
| 145 |
-
const newUrl = `${window.location.pathname}?${searchParams.toString()}`;
|
| 146 |
-
window.history.replaceState(null, '', newUrl);
|
| 147 |
-
}
|
| 148 |
-
} catch (e) {
|
| 149 |
-
// Ignore cross-origin history state errors in HF Spaces/iframes
|
| 150 |
-
}
|
| 151 |
}, [activeTab]);
|
| 152 |
|
| 153 |
const [sortOrgCol, setSortOrgCol] = useState('Tenant Name');
|
|
|
|
| 139 |
useEffect(() => {
|
| 140 |
try {
|
| 141 |
localStorage.setItem('superAdminActiveTab', activeTab);
|
| 142 |
+
} catch (e) {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
}, [activeTab]);
|
| 144 |
|
| 145 |
const [sortOrgCol, setSortOrgCol] = useState('Tenant Name');
|