Skip to content

Commit

Permalink
Merge pull request #208 from ActivityWatch/dev/vuex-fix
Browse files Browse the repository at this point in the history
fix: Fix broken getBucketWithEvents
  • Loading branch information
johan-bjareholt committed Jun 21, 2020
2 parents 4b08fbd + 554f3f7 commit 16e37ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/store/modules/buckets.js
@@ -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 16e37ae

Please sign in to comment.