Problem with units view after endLightbox

I’ve got a units view that displays correctly when it comes up. If I cancel or create after bringing up a custom form for a new event then all of the events get redisplayed under the first section instead of their appropriate section. Any idea what I could be doing wrong? I’m trying to reproduce with a combination of the custom form sample and the units sample but no luck so far.

Here’s the units setup:

scheduler.createUnitsView({
    name:"unit",
    property:"site_resource_id",
    list: site_resources,
    skip_incorrect:true,
    size:6,
    step:5
});

My cancel action just does a scheduler.endLightbox(false, form_element)

Hello,

Can’t guess from this information.
Try building your logic upon our sample step by step and maybe at some point it will break. Then we will know the culprit :slight_smile:

Kind regards,
Ilya

Found the problem. It took me an embarrassing amount of time to figure out that the following code caused major issues:

  if (this.scheduler._mode = 'workweek' || this.scheduler._mode === 'month') {