Skip to content

Commit

Permalink
fix: items get added to clipboard on item select
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksey-hoffman committed Aug 7, 2021
1 parent ccc3e70 commit 51f345a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -4570,6 +4570,8 @@ export default new Vuex.Store({
items: store.getters.selectedDirItems
}
params = {...defaultParams, ...params}
params.items = utils.cloneDeep(params.items)
// Set clipboard data
store.state.navigatorView.clipboard.fs.type = params.type
store.state.navigatorView.clipboard.fs.items = params.items
},
Expand All @@ -4578,6 +4580,8 @@ export default new Vuex.Store({
items: store.getters.selectedDirItems
}
params = {...defaultParams, ...params}
params.items = utils.cloneDeep(params.items)
// Set clipboard data
store.state.navigatorView.clipboard.fs.type = params.type
params.items.forEach(item => {
const itemAlreadyAdded = store.state.navigatorView.clipboard.fs.items
Expand Down

0 comments on commit 51f345a

Please sign in to comment.