Skip to content

Commit

Permalink
Convert fabric index to proper number
Browse files Browse the repository at this point in the history
...when computing ACL changes
  • Loading branch information
lauckhart committed Nov 23, 2024
1 parent 9375f6c commit 7d4e240
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,9 @@ function* computeAclChanges<T extends { fabricIndex: FabricIndex }>(
groupByFabrics(fabricLists, "new", newEntries);

for (const fabricIndex in fabricLists) {
const entry = fabricLists[fabricIndex as unknown as FabricIndex];
yield* computeFabricAclChanges(actor, fabricIndex as unknown as FabricIndex, entry.old, entry.new);
const numericIndex = FabricIndex(Number.parseInt(fabricIndex));
const entry = fabricLists[numericIndex];
yield* computeFabricAclChanges(actor, numericIndex, entry.old, entry.new);
}
}

Expand Down

0 comments on commit 7d4e240

Please sign in to comment.