fix: selections should now work post-folder creation (#2659)

This commit is contained in:
ArthurMousatov 2023-08-23 22:31:22 -04:00
parent 696c9bd2dd
commit 7c16e795e2

View File

@ -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;