Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty calendar causes blank screen error on return to free status #47

Open
mnordstr opened this issue Nov 16, 2018 · 5 comments
Open

Empty calendar causes blank screen error on return to free status #47

mnordstr opened this issue Nov 16, 2018 · 5 comments

Comments

@mnordstr
Copy link

Hi,

We have a single meeting room calendar on the display and everything seems to work ok. When a meeting is in progress and the screen shows busy and when the meeting is over and the screen should return to open (green) the screen goes blank and looking at the console I see the following error:

TypeError: Cannot read property 'Subject' of undefined at s (main.d06b06f7.js:1) at beginWork (main.d06b06f7.js:1) at i (main.d06b06f7.js:1) at c (main.d06b06f7.js:1) at l (main.d06b06f7.js:1) at m (main.d06b06f7.js:1) at h (main.d06b06f7.js:1) at Object.enqueueSetState (main.d06b06f7.js:1) at t.o.setState (main.d06b06f7.js:1) at Object.n.handleSocket [as response] (main.d06b06f7.js:1) p @ main.d06b06f7.js:1 main.d06b06f7.js:1 Uncaught TypeError: Cannot read property 'Subject' of undefined at s (main.d06b06f7.js:1) at beginWork (main.d06b06f7.js:1) at i (main.d06b06f7.js:1) at c (main.d06b06f7.js:1) at l (main.d06b06f7.js:1) at m (main.d06b06f7.js:1) at h (main.d06b06f7.js:1) at Object.enqueueSetState (main.d06b06f7.js:1) at t.o.setState (main.d06b06f7.js:1) at Object.n.handleSocket [as response] (main.d06b06f7.js:1)

There are no upcoming appointments so this seems to be the issue. When I create two upcoming meetings, the first one works correctly and the second one has the same issue returning to open, goes blank as there are no upcoming appointments.

@DanySupernova
Copy link

I have same issue, how did you solve it?

Thank you very much!

@DanySupernova
Copy link

I installed version 0.3.3 and it works, I don't know why. I have 2013 on prem

@mnordstr
Copy link
Author

I have same issue, how did you solve it?

Thank you very much!

Hi, never managed to solve it. We refresh the whole page quite often (show other things on the display also) so the error will not show up for long normally.

@FlamingFlamingo42
Copy link

FlamingFlamingo42 commented Nov 10, 2021

Is there any fix to that? Still having this problem in the newest version.

To reproduce:
Simple create an Event starting before current time and ending in the future. After the Singleroom screen changes to red, cancel the event.

@FlamingFlamingo42
Copy link

I found a fix.
In RoomStatusBlock.js the check for details.appointmentsExists doesn't work as intended.
Simply changing to details.appointmentsExists && room.Appointments.length > 0 fixed the problem for me.

Here is the whole class:
https://pastebin.com/bxTrH4zJ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants