search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

exportAs printing method throws an error

Asked by Steve S.
3 months ago.

Hi,

we get an error when we try to print daypilot scheduler. We looked into the code and saw that elements in links array are all set to null (array looked like: [null, null, null...])

StackTrace:
ERROR TypeError: Cannot read property 'map' of null
at daypilot-angular.min.js:27
at Array.forEach (<anonymous>)
at Object.g.generate (daypilot-angular.min.js:27)
at DayPilot.Scheduler.exportAs (daypilot-angular.min.js:26)

Line:
return g.getLinks().forEach(function(e){e.map(function(e){return g.shiftableSegment(e).shift(l.grid.x-X,l.grid.y-q)})

Build number:
2019.4.4073

We plan to update to recent version, is it maybe fixed meanwhile?

Thanks

Answer posted by Dan Letecky [DayPilot]
3 months ago.

I do not see any error with the latest release so I recommend giving it a try. Please let me know if the problem persists.

Comment posted by Steve S.
3 months ago.

Thank you Dan, we will give it a shot soon.

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.