Bugfix for useAlarmAssets. If the useDescribeAssets / useDescribeAssetModels queries were loading for the first time, their response will be undefined. In that case, we were not returning any AlarmData objects. This means that we could not correctly access the isLoading flags. The hook will now return an empty AlarmData object with the query status if the useDescribeAssets / useDescribeAssetModels queries responses are undefined.
Overview
Bugfix for
useAlarmAssets
. If theuseDescribeAssets / useDescribeAssetModels
queries were loading for the first time, their response will be undefined. In that case, we were not returning any AlarmData objects. This means that we could not correctly access theisLoading
flags. The hook will now return an empty AlarmData object with the query status if theuseDescribeAssets / useDescribeAssetModels
queries responses are undefined.Legal
This project is available under the Apache 2.0 License.