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