headstartwp icon indicating copy to clipboard operation
headstartwp copied to clipboard

Menu item ID is not necessarily a number

Open Knskan3 opened this issue 9 months ago • 1 comments

https://github.com/10up/headstartwp/blob/77764a99717598373177dd6c98df0c9d050a17d9/packages/core/src/react/hooks/useFetchMenu.ts#L21

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

Knskan3 avatar May 20 '24 14:05 Knskan3