fix: selections should now work post-folder creation (#2659)
This commit is contained in:
parent
696c9bd2dd
commit
7c16e795e2
@ -79,7 +79,11 @@ const mutations = {
|
|||||||
},
|
},
|
||||||
updateRequest: (state, value) => {
|
updateRequest: (state, value) => {
|
||||||
state.oldReq = state.req;
|
state.oldReq = state.req;
|
||||||
|
const selectedItems = state.selected.map((i) => state.req.items[i]);
|
||||||
state.req = value;
|
state.req = value;
|
||||||
|
state.selected = state.req.items
|
||||||
|
.filter((item) => selectedItems.some((rItem) => rItem.url === item.url))
|
||||||
|
.map((item) => item.index);
|
||||||
},
|
},
|
||||||
updateClipboard: (state, value) => {
|
updateClipboard: (state, value) => {
|
||||||
state.clipboard.key = value.key;
|
state.clipboard.key = value.key;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user