Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

fix(resource/menu): prevent opening empty menu#675

Merged
thelindat merged 1 commit intooverextended:masterfrom
BerkieBb:master
Jan 19, 2025
Merged

fix(resource/menu): prevent opening empty menu#675
thelindat merged 1 commit intooverextended:masterfrom
BerkieBb:master

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants