chore: Minor refactoring for consistency (#2425)

This commit is contained in:
Lipis
2020-11-29 18:32:51 +02:00
committed by GitHub
parent 204c8370a0
commit b21fd49412
21 changed files with 76 additions and 82 deletions

View File

@@ -127,8 +127,8 @@ export const getNewGroupIdsForDuplication = (
: -1;
const endIndex =
positionOfEditingGroupId > -1 ? positionOfEditingGroupId : groupIds.length;
for (let i = 0; i < endIndex; i++) {
copy[i] = mapper(copy[i]);
for (let index = 0; index < endIndex; index++) {
copy[index] = mapper(copy[index]);
}
return copy;