Skip to content

Commit

Permalink
remove group summary calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
chienleng committed Oct 5, 2023
1 parent 510eb01 commit 97a5eb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/SummaryTable/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ export default {
computed: {
...mapGetters({
datasetFull: 'regionEnergy/datasetFull',
datasetFull: 'regionEnergy/datasetFlat',
changeSinceDataset: 'regionEnergy/changeSinceDataset',
domainPowerEnergy: 'regionEnergy/domainPowerEnergy',
domainPowerEnergyGrouped: 'regionEnergy/domainPowerEnergyGrouped',
Expand Down
12 changes: 6 additions & 6 deletions store/regionEnergy.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const state = () => ({
isEnergyType: false,
jsonResponses: null,
datasetFlat: [],
datasetFull: [],
// datasetFull: [],
currentDataset: [],
changeSinceDataset: [],
domainPowerEnergy: [],
Expand Down Expand Up @@ -69,7 +69,7 @@ export const getters = {
isFetching: (state) => state.isFetching,
isEnergyType: (state) => state.isEnergyType,
datasetFlat: (state) => state.datasetFlat,
datasetFull: (state) => state.datasetFull,
// datasetFull: (state) => state.datasetFull,
currentDataset: (state) => state.currentDataset,
changeSinceDataset: (state) => state.changeSinceDataset,
domainPowerEnergy: (state) => state.domainPowerEnergy,
Expand Down Expand Up @@ -133,9 +133,9 @@ export const mutations = {
datasetFlat(state, datasetFlat) {
state.datasetFlat = _cloneDeep(datasetFlat)
},
datasetFull(state, datasetFull) {
state.datasetFull = _cloneDeep(datasetFull)
},
// datasetFull(state, datasetFull) {
// state.datasetFull = _cloneDeep(datasetFull)
// },

currentDataset(state, currentDataset) {
state.currentDataset = _cloneDeep(currentDataset)
Expand Down Expand Up @@ -547,7 +547,7 @@ export const actions = {
}

commit('datasetFlat', datasetFlat)
commit('datasetFull', datasetFull)
// commit('datasetFull', datasetFull)

commit('isFetching', false)
commit('isEnergyType', dataType === 'energy')
Expand Down

0 comments on commit 97a5eb3

Please sign in to comment.