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 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,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user