Skip to content

Commit

Permalink
fix: cannot read property error
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrikbjornland committed Oct 22, 2024
1 parent cbfab24 commit 388d6f3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/FlightDisplay/FlyViewMap.qml
Original file line number Diff line number Diff line change
Expand Up @@ -343,13 +343,13 @@ FlightMap {
MapItemView {
model: QGroundControl.adsbVehicleManager.visibleADSBVehicles
delegate: VehicleMapItem {
coordinate: object.coordinate
altitude: object.altitude
callsign: object.callsign
heading: object.heading
alert: object.alert
emitterType: object.emitterType
icaoAddress: object.icaoAddress
coordinate: object ? object.coordinate : QtPositioning.coordinate(0, 0)
altitude: object ? object.altitude : 0
callsign: object ? object.callsign : ""
heading: object ? object.heading : 0
alert: object ? object.alert : false
emitterType: object ? object.emitterType : 0
icaoAddress: object ? object.icaoAddress : ""
map: _root
z: QGroundControl.zOrderVehicles
}
Expand Down

0 comments on commit 388d6f3

Please sign in to comment.