Widget Time Card Portal Header integrated on Employee Center
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 05:22 AM
Hello everyone,
I am integrating timesheets on employee center by adding a menu item linking to the 'worker_portal' page (see 'Timesheets' button on top right.
I face an issue with the widget 'Time Card Portal Header' (allowing to choose previous/next or any timesheet), included in the 'worker_portal' page : when I open the EC and go to the timesheet page via the menu item, the header widget does not work. I can't select a date, previous nor next timesheet.
-> I tried to inspect the page and it throws an error when I click on the header: "Cannot read properties of undefined (reading 'destroy')"
However, if I then go to another page (ex: homepage) and come back to timesheet page (via menu item), the widget then works.
That's definitively not ideal as the end users shouldn't open the page multiple times before it works as expected...
Do you have any idea on how to fix this and get the widget to work the first time this page is opened?