mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-22 15:19:47 +02:00
fix routing bug in side drawer
This commit is contained in:
@@ -100,7 +100,7 @@ export default function DrawerSubViewProvider({
|
|||||||
(to: To) => {
|
(to: To) => {
|
||||||
const newRouter = createMemoryRouter(routes, { initialEntries: [to] });
|
const newRouter = createMemoryRouter(routes, { initialEntries: [to] });
|
||||||
newRouter.subscribe((e) => {
|
newRouter.subscribe((e) => {
|
||||||
if (!!e.errors?.["__shim-error-route__"]) {
|
if (e.errors && e.errors[0].status === 404 && e.errors[0].internal) {
|
||||||
openInParent(e.location);
|
openInParent(e.location);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user