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

Fix TypeError When Room Cache Is Undefined #10748

Closed
wants to merge 2 commits into from

Conversation

DieterReinert
Copy link
Contributor

This PR addresses a TypeError that occurs in the runActions function when attempting to access the staffNotified property of an undefined cache[room.roomid]. By adding a conditional check, the function now safely skips the notification logic if the room cache does not exist, preventing runtime crashes.

…ined

This PR addresses a ``TypeError`` that occurs in the ``runActions`` function when attempting to access the ``staffNotified`` property of an undefined ``cache[room.roomid]``. By adding a conditional check, the function now safely skips the notification logic if the room cache does not exist, preventing runtime crashes.
@mia-pi-git
Copy link
Member

I resolved this in a slightly different way, to avoid skipping potentially necessary steps. Thanks for the PR!

@mia-pi-git mia-pi-git closed this Dec 17, 2024
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

Successfully merging this pull request may close these issues.

2 participants