Skip to content

Commit 554f3f7

Browse files
fix: Fix broken getBucketWithEvents
1 parent 4b08fbd commit 554f3f7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/store/modules/buckets.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const _ = require('lodash');
2+
13
// initial state
24
const state = {
35
buckets: [],
@@ -64,7 +66,7 @@ const actions = {
6466

6567
async getBucketWithEvents({ getters, dispatch }, { id, start, end }) {
6668
await dispatch('ensureBuckets');
67-
const bucket = getters.getBucket(id);
69+
const bucket = _.cloneDeep(getters.getBucket(id));
6870
bucket.events = await this._vm.$aw.getEvents(bucket.id, {
6971
start,
7072
end,

0 commit comments

Comments
 (0)