Our pure JavaScript Scheduler component


Post by netten.mehra »

I was able to successfully run the app.

My issue was resolved as I changed the way I remove resourceId from events.

previously I was using an approach as visible in one of the screenshots above (tweakedEvents) where I simply set resourceId for all events in my array to undefined. This however did not work.

I changed the logic to delete resourceId from the objects instead of setting it to undefined and this resolved the entire problem.

the code that is now in use on my app and works looks as following:

const tweakedEvents = events.map((e) => {
   const clone = {...e};

   delete clone.resourceId;

   return clone;
})

Post by alex.l »

Thank you for sharing that useful info! And good luck with your development!

All the best,
Alex


Post Reply