Skip to content

Commit

Permalink
fix: affected request indices computation post request move
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed May 9, 2024
1 parent e878b9a commit b714b01
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -746,8 +746,9 @@ export class PersonalWorkspaceProviderService
const affectedRequestIDs = Array.from({
length: affectedReqIndexRange,
}).map((_, idx) => {
const val = affectedReqIndexRange + idx
return `${sourceCollectionID}/${val}`
// Affected request indices will start from the next position of the dragged request, hence adding `1`
const resolvedRequestIndexPos = draggedRequestIndexPos + idx + 1
return `${sourceCollectionID}/${resolvedRequestIndexPos}`
})

moveRESTRequest(
Expand Down

0 comments on commit b714b01

Please sign in to comment.