Skip to content

Commit

Permalink
fix: rf regions sort
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Jun 25, 2024
1 parent f37f346 commit 03c3ea7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/lib/ZwaveClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6032,12 +6032,11 @@ class ZwaveClient extends TypedEventEmitter<ZwaveClientEventCallbacks> {
node.hasDeviceConfigChanged = zwaveNode.hasDeviceConfigChanged()

if(node.isControllerNode) {

Check failure on line 6034 in api/lib/ZwaveClient.ts

View workflow job for this annotation

GitHub Actions / test (18.x)

Insert `·`
node.rfRegions = this.driver.controller.getSupportedRFRegions()?.toSorted().map(
node.rfRegions = this.driver.controller.getSupportedRFRegions()?.map(

Check failure on line 6035 in api/lib/ZwaveClient.ts

View workflow job for this annotation

GitHub Actions / test (18.x)

Replace `·this.driver.controller.getSupportedRFRegions()?.map(⏎↹↹↹↹` with `⏎↹↹↹↹this.driver.controller⏎↹↹↹↹↹.getSupportedRFRegions()⏎↹↹↹↹↹?.map(`
(region) => ({
value: region,

Check failure on line 6037 in api/lib/ZwaveClient.ts

View workflow job for this annotation

GitHub Actions / test (18.x)

Insert `↹`
text: getEnumMemberName(RFRegion, region),

Check failure on line 6038 in api/lib/ZwaveClient.ts

View workflow job for this annotation

GitHub Actions / test (18.x)

Insert `↹`
}),
) ?? []
})).sort((a, b) => a.text.localeCompare(b.text)) ?? []

Check failure on line 6039 in api/lib/ZwaveClient.ts

View workflow job for this annotation

GitHub Actions / test (18.x)

Replace `}))` with `↹}))⏎↹↹↹↹↹`
}
}

Expand Down

0 comments on commit 03c3ea7

Please sign in to comment.