mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-14 10:34:06 +02:00
fix: prettier format on AppConfigModal
This commit is contained in:
@@ -84,8 +84,9 @@ const AppConfigModalInner: React.FC<AppConfigModalProps> = ({
|
||||
const handler = (ev: Event) => {
|
||||
const detail = (ev as CustomEvent).detail as { key?: NavKey } | undefined;
|
||||
if (detail?.key) {
|
||||
const alreadyInSettings =
|
||||
stripBasePath(window.location.pathname).startsWith("/settings");
|
||||
const alreadyInSettings = stripBasePath(
|
||||
window.location.pathname,
|
||||
).startsWith("/settings");
|
||||
navigate(`/settings/${detail.key}`, {
|
||||
replace: alreadyInSettings,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user