Fix error on Hardware status page
Setting default value for processors to an empty array to avoid
error "TypeError: Cannot read property 'length' of null" caused
when attempting to calculate the total table count on initial
load.
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I2e3af184f7f7649bed96cd4fd994fb3ee24ff28f
diff --git a/src/store/modules/Health/ProcessorStore.js b/src/store/modules/Health/ProcessorStore.js
index 8680f65..a1411eb 100644
--- a/src/store/modules/Health/ProcessorStore.js
+++ b/src/store/modules/Health/ProcessorStore.js
@@ -3,7 +3,7 @@
const ProcessorStore = {
namespaced: true,
state: {
- processors: null
+ processors: []
},
getters: {
processors: state => state.processors