fix: apply CodeRabbit auto-fixes
Fixed 2 file(s) based on 1 unresolved review comment. Co-authored-by: CodeRabbit <[email protected]>
This commit is contained in:
co-authored by
CodeRabbit
parent
b46df94124
commit
c8233c6f0f
@@ -184,10 +184,15 @@ export default function NetworkSettingsPage() {
|
||||
// back navigation. The initial open state was already captured above.
|
||||
useEffect(() => {
|
||||
if (searchParams.get('add') !== '1') return;
|
||||
const next = new URLSearchParams(searchParams);
|
||||
next.delete('add');
|
||||
setSearchParams(next, { replace: true });
|
||||
}, [searchParams, setSearchParams]);
|
||||
setSearchParams(
|
||||
(prev) => {
|
||||
const next = new URLSearchParams(prev);
|
||||
next.delete('add');
|
||||
return next;
|
||||
},
|
||||
{ replace: true },
|
||||
);
|
||||
}, [setSearchParams]);
|
||||
|
||||
const networkName = network?.name ?? 'Network';
|
||||
const memberCount = network?.humans.length ?? 0;
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
"resolveJsonModule": true,
|
||||
"jsx": "react-jsx",
|
||||
"strict": true,
|
||||
"ignoreDeprecations": "6.0",
|
||||
"baseUrl": "./",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
|
||||
Reference in New Issue
Block a user