Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu item ID is not necessarily a number #772

Open
Knskan3 opened this issue May 20, 2024 · 1 comment
Open

Menu item ID is not necessarily a number #772

Knskan3 opened this issue May 20, 2024 · 1 comment

Comments

@Knskan3
Copy link

Knskan3 commented May 20, 2024

const parentId = Number(item.menu_item_parent);

When using polylang, the menu item ID could contain the id-LANG, causing errors during the Number cast.

In example:
Screenshot 2024-05-20 at 16 14 57

@nicholasio
Copy link
Member

Thanks for the bug report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants