Skip to content

Commit

Permalink
fix: Fix broken getBucketWithEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-bjareholt committed Jun 21, 2020
1 parent 4b08fbd commit 554f3f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/store/modules/buckets.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const _ = require('lodash');

// initial state
const state = {
buckets: [],
Expand Down Expand Up @@ -64,7 +66,7 @@ const actions = {

async getBucketWithEvents({ getters, dispatch }, { id, start, end }) {
await dispatch('ensureBuckets');
const bucket = getters.getBucket(id);
const bucket = _.cloneDeep(getters.getBucket(id));
bucket.events = await this._vm.$aw.getEvents(bucket.id, {
start,
end,
Expand Down

0 comments on commit 554f3f7

Please sign in to comment.