Skip to content

Commit

Permalink
Fixed 'Promise.all' related errors on Overview (#119)
Browse files Browse the repository at this point in the history
Promise.all accepts a single argument, which is an array of Promises. The Promise.all wasn't an array

- updated the all Promise.all into arrays onOverviewPower and OverviewFirmware components. 

Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com>
  • Loading branch information
Kenneth Fullbright authored and GitHub Enterprise committed Mar 11, 2022
1 parent c6df647 commit 7cd10bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/views/Overview/OverviewFirmware.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ export default {
},
},
created() {
Promise.all(
Promise.all([
this.$store.dispatch('licenses/getLicenses'),
this.$store.dispatch('firmware/getFirmwareInformation')
).finally(() => {
this.$store.dispatch('firmware/getFirmwareInformation'),
]).finally(() => {
this.$root.$emit('overview-firmware-complete');
});
},
Expand Down
6 changes: 3 additions & 3 deletions src/views/Overview/OverviewPower.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ export default {
}),
},
created() {
Promise.all(
Promise.all([
this.$store.dispatch('powerControl/getPowerSaverModeData'),
this.$store.dispatch('powerControl/getPowerControl')
).finally(() => {
this.$store.dispatch('powerControl/getPowerControl'),
]).finally(() => {
this.$root.$emit('overview-power-complete');
});
},
Expand Down

0 comments on commit 7cd10bb

Please sign in to comment.