mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(post form): opening settings would close post form
This commit is contained in:
+4
-2
@@ -33,8 +33,10 @@ const BoardLayout = () => {
|
|||||||
return <NotFound />;
|
return <NotFound />;
|
||||||
}
|
}
|
||||||
|
|
||||||
// force rerender of post form when navigating between pages
|
// force rerender of post form when navigating between pages, except when opening settings modal in current view
|
||||||
const key = `${subplebbitAddress}-${location.pathname}`;
|
const key = location.pathname.endsWith('/settings')
|
||||||
|
? `${subplebbitAddress}-${location.pathname.replace(/\/settings$/, '')}`
|
||||||
|
: `${subplebbitAddress}-${location.pathname}`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.boardLayout}>
|
<div className={styles.boardLayout}>
|
||||||
|
|||||||
Reference in New Issue
Block a user