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

luci-base: forms.js safe call on this.map.data.remove() #7652

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

stokito
Copy link
Contributor

@stokito stokito commented Feb 25, 2025

Related: #7326

It may not fix, but at least it shouldn't harm

@systemcrash
Copy link
Contributor

How does it behave if you install a test instance and as described in the linked issue, delete the main instance.

@systemcrash systemcrash merged commit 926c3ba into openwrt:master Feb 26, 2025
4 of 5 checks passed
@stokito
Copy link
Contributor Author

stokito commented Feb 26, 2025

I'll test on VM later today.
The possible place where the data is assigned so can be set to null is the constructor:

https://github.com/openwrt/luci/blob/master/modules/luci-base/htdocs/luci-static/resources/form.js#L379

Maybe we should fix it somehow here. Will check later.

@stokito stokito deleted the forms_safe_remove branch February 26, 2025 16:48
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