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

Commit 8e5ad24

Browse files
committed
Fix resetting altitude when updating gw location.
1 parent 4b48e01 commit 8e5ad24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/src/views/gateways/GatewayForm.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ class GatewayForm extends FormComponent {
161161
object.location = {
162162
latitude: position.coords.latitude,
163163
longitude: position.coords.longitude,
164+
altitude: this.state.object.location.altitude,
164165
}
165166
this.setState({
166167
object: object,
@@ -174,6 +175,7 @@ class GatewayForm extends FormComponent {
174175
object.location = {
175176
latitude: position.lat,
176177
longitude: position.lng,
178+
altitude: this.state.object.location.altitude,
177179
}
178180
this.setState({
179181
object: object,

0 commit comments

Comments
 (0)