Skip to content

Commit

Permalink
try to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GopherJ committed Jul 6, 2018
1 parent 525f3b4 commit 7192684
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/LayoutGrid.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/LayoutGrid.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/LayoutGrid.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-layout-grid",
"version": "0.1.3",
"version": "0.1.5",
"description": "layout gridster with vue",
"main": "dist/LayoutGrid.min.js",
"scripts": {
Expand Down
7 changes: 6 additions & 1 deletion src/store/LayoutGridStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ const mutations = {
}
},
SET_LAYOUT(state, layout) {
state.layout = _.cloneDeep(layout);
state.layout.length = 0;
state.layoutCache.length = 0;

for (let i = 0, l = layout.length; i < l; i += 1) {
state.layout.push(layout[i]);
}
},
SEARCH_LAYOUT_ITEM(state, searchString) {
const re = new RegExp(searchString, 'i');
Expand Down

0 comments on commit 7192684

Please sign in to comment.