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

Merged
merged 1 commit into from
Jan 19, 2025

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..
@thelindat thelindat merged commit 79f311a into overextended:master Jan 19, 2025
abdel1touimi pushed a commit to SaharaScripters/ox_lib that referenced this pull request Jan 26, 2025
Prevents the app from failing on render errors as mentioned
in overextended#675. More to come..
abdel1touimi pushed a commit to SaharaScripters/ox_lib that referenced this pull request Jan 26, 2025
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