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(resource/menu): prevent opening empty menu #675

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BerkieBb
Copy link
Contributor

@BerkieBb BerkieBb commented Dec 1, 2024

Opening an empty menu always leads to an error and the nui code breaking. This should prevent most cases (as there can still be people that send empty tables in the options).

@BerkieBb
Copy link
Contributor Author

BerkieBb commented Dec 1, 2024

Yes, this is a thing that should be handled, I've unfortunately done this myself on accident a lot and spent too much time figuring out why it doesn't open, only for the nui code to be broken and a restart fixing it.

@thelindat
Copy link
Member

thelindat commented Dec 2, 2024

We probably need to look into resolving the underlying issue of the app breaking when there's an error, assuming that isn't a difficult task. At the very least we should be able to log the nui events causing issues if not revert the state/cancel the action.

@LukeWasTakenn

thelindat added a commit that referenced this pull request Dec 6, 2024
Prevents the app from failing on render errors as mentioned
in #675. More to come..
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