diff options
Diffstat (limited to 'src/store/modules/HardwareStatus/SensorsStore.js')
-rw-r--r-- | src/store/modules/HardwareStatus/SensorsStore.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/store/modules/HardwareStatus/SensorsStore.js b/src/store/modules/HardwareStatus/SensorsStore.js index 287796d9..ecf2c401 100644 --- a/src/store/modules/HardwareStatus/SensorsStore.js +++ b/src/store/modules/HardwareStatus/SensorsStore.js @@ -16,6 +16,7 @@ const SensorsStore = { }, actions: { async getAllSensors({ dispatch }) { + console.log('getAllSensors@@@'); const collection = await dispatch('getChassisCollection'); if (!collection) return; const promises = collection.reduce((acc, id) => { @@ -35,10 +36,12 @@ const SensorsStore = { .catch((error) => console.log(error)); }, async getSensors({ commit }, id) { + console.log('getSensors@@@'); const sensors = await api .get(`${id}/Sensors`) .then((response) => response.data.Members) .catch((error) => console.log(error)); + console.log('sensors@@@', sensors); if (!sensors) return; const promises = sensors.map((sensor) => { return api.get(sensor['@odata.id']).catch((error) => { |