try to fix the arg not being right
This commit is contained in:
parent
628371ed73
commit
cb452398f9
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ const updateFromCurrentPathname = () => {
|
|||
|
||||
for (const [route, action] of Object.entries(dynamicRoutesActions)) {
|
||||
if (pathname.startsWith(route)) {
|
||||
const arg = stripTrailingSlash(pathname).split('/')[1];
|
||||
const arg = stripTrailingSlash(pathname).split('/')[2];
|
||||
console.log(arg);
|
||||
action(arg);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue