Skip to content

fix(settings): Correct hop_limit type for LoRa config#4525

Merged
jamesarich merged 1 commit into
mainfrom
fix/hops
Feb 11, 2026
Merged

fix(settings): Correct hop_limit type for LoRa config#4525
jamesarich merged 1 commit into
mainfrom
fix/hops

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

The hop_limit property was being incorrectly converted to a Long for the SingleSelectItem. This commit corrects the type to align with the form state, removing the unnecessary toLong() and toInt() conversions.
addresses #4503

The `hop_limit` property was being incorrectly converted to a Long for the `SingleSelectItem`. This commit corrects the type to align with the form state, removing the unnecessary `toLong()` and `toInt()` conversions.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 11, 2026 00:04
@github-actions github-actions Bot added the bugfix PR tag label Feb 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the LoRa settings “Hop Limit” dropdown not showing the currently configured value by aligning the selectedItem/onItemSelected types with the form state (and the dropdown items), avoiding mismatched equality checks during selection lookup.

Changes:

  • Use Int for selectedItem instead of converting hop_limit to Long.
  • Remove unnecessary toInt() conversion in onItemSelected, storing the selected Int directly.

@codecov

codecov Bot commented Feb 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 14.42%. Comparing base (d252fde) to head (eafd6a6).
⚠️ Report is 4 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4525   +/-   ##
=======================================
  Coverage   14.42%   14.42%           
=======================================
  Files         424      424           
  Lines       14521    14521           
  Branches     2410     2410           
=======================================
  Hits         2094     2094           
  Misses      12124    12124           
  Partials      303      303           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jamesarich jamesarich added this pull request to the merge queue Feb 11, 2026
Merged via the queue into main with commit 88ca011 Feb 11, 2026
15 checks passed
@jamesarich jamesarich deleted the fix/hops branch February 11, 2026 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PR tag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants