question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Type error when slotDuration is in whole days

See original GitHub issue

###Reduced Test Case

https://codepen.io/tuerker/pen/eYzLZar

###Bug Description

When there is only one slot per day, the calendar crashes and becomes unusable.

Screenshot from 2020-11-06 13-59-20

I had a quick view on the code. The problem lies in the class TimeColsSlatsCoords.ts.

The method computeTimeTop(duration: Duration) delivers an NPE

let slotDurationMs = slatMetas[1].date.valueOf() - slatMetas[0].date.valueOf() // we assume dates are uniform

Obviously, this happens when there is only a single slot per day.

A revision is required here since this very common use case cannot be excluded!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tuerkercommented, Jan 22, 2021

forget it. i works. it was my fault on being not on the latest version. many thanks again to adam for fixing it.

1reaction
mellowarecommented, Jan 16, 2021

Thank you much appreciated!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue with slotLabelInterval and odd time settings
I believe this is a bug in the calculations because it you do the math on the times, each days time is a...
Read more >
slotDuration - Docs
slotDuration. The frequency for displaying time slots. Duration, default: '00:30:00' (30 minutes). 10% of profits donated to effective charities.
Read more >
Fullcalendar duration / slotDuration
URL Extension Required. When linking another Pen as a resource, make sure you use a URL Extension of the type of code you...
Read more >
[FullCalendar Reactive] Javascript error thrown when trying to ...
Forge component by André Cabral. Application Type. Reactive. Service Studio Version. 11.53.16 (Build 61265). I am using the Demo of Full Calendar to...
Read more >
fullcalendar 5.5.1 on Node.js NPM
view styles lost after changing to view with allDaySlot:false, view-specific dayHeaders (#6069); type error when slotDuration is in whole days (#5952) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found