refactor: tab saveContext resolution post collection remove action

This commit is contained in:
jamesgeorge007
2024-05-01 21:02:11 +05:30
parent 0abdc63f0e
commit 412daa4d17
3 changed files with 40 additions and 29 deletions

View File

@@ -1812,18 +1812,15 @@ const dropCollection = async (payload: {
: resolvedDestinationCollectionIndex
}
resolveSaveContextOnCollectionReorder(
{
lastIndex: pathToLastIndex(draggedCollectionIndex),
newIndex: -1,
folderPath: draggedParentCollectionIndex,
length: getFoldersByPath(
restCollectionState.value,
draggedParentCollectionIndex
).length,
},
"drop"
)
resolveSaveContextOnCollectionReorder({
lastIndex: pathToLastIndex(draggedCollectionIndex),
newIndex: -1,
folderPath: draggedParentCollectionIndex,
length: getFoldersByPath(
restCollectionState.value,
draggedParentCollectionIndex
).length,
})
updateSaveContextForAffectedRequests(
draggedCollectionIndex,