fix: prettier format on AppConfigModal

This commit is contained in:
Anthony Stirling
2026-06-08 21:28:13 +01:00
parent 1d5ce8a1d2
commit 92376b7382
@@ -84,8 +84,9 @@ const AppConfigModalInner: React.FC<AppConfigModalProps> = ({
const handler = (ev: Event) => { const handler = (ev: Event) => {
const detail = (ev as CustomEvent).detail as { key?: NavKey } | undefined; const detail = (ev as CustomEvent).detail as { key?: NavKey } | undefined;
if (detail?.key) { if (detail?.key) {
const alreadyInSettings = const alreadyInSettings = stripBasePath(
stripBasePath(window.location.pathname).startsWith("/settings"); window.location.pathname,
).startsWith("/settings");
navigate(`/settings/${detail.key}`, { navigate(`/settings/${detail.key}`, {
replace: alreadyInSettings, replace: alreadyInSettings,
}); });