mirror of
https://github.com/4IceG/luci-app-3ginfo-lite.git
synced 2026-04-25 03:16:13 +03:00
[PR #137] [MERGED] fix: prevent 'undefined length' errors in 3gdetail.js #237
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/luci-app-3ginfo-lite#237
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/4IceG/luci-app-3ginfo-lite/pull/137
Author: @iqubik
Created: 3/11/2026
Status: ✅ Merged
Merged: 3/11/2026
Merged by: @4IceG
Base:
main← Head:main📝 Commits (3)
7b09da5Update print statement from 'Hello' to 'Goodbye'1c8dd4cChange greeting from 'Hello' to 'Goodbye'8d835eaRefactor SIMdata function for safer JSON parsing📊 Changes
1 file changed (+34 additions, -26 deletions)
View changed files
📝
luci-app-3ginfo-lite/htdocs/luci-static/resources/view/modem/3gdetail.js(+34 -26)📄 Description
This commit fixes a JS crash (Cannot read properties of undefined - reading 'length') on the main page and during BTS search:
SIMdata: Added safety checksdata.simslot && sdata.simslot.lengthto prevent crashes when a modem does not return simslot info.o.onclick: Added check forsearchsiteexistence (to handle uci get failures) and converted properties to Strings before checking length, preventing crashes if Cell ID or MNC/MCC are missing.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.