Skip to content

Commit

Permalink
fix: dont double set IdentifierArray index
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Jan 14, 2025
1 parent 73a4a3b commit 3817863
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,6 @@ export class IdentifierArray<T = unknown> {

const original: StableRecordIdentifier | undefined = target[index];
const newIdentifier = extractIdentifierFromRecord(value);
(target as unknown as Record<KeyType, unknown>)[index] = newIdentifier;
assert(`Expected a record`, isStableIdentifier(newIdentifier));
// We generate "transactions" whenever a setter method on the array
// is called and might bulk update multiple array cells. Fundamentally,
Expand Down

0 comments on commit 3817863

Please sign in to comment.