Skip to content

Commit

Permalink
fix: invalidation values comparison for objects
Browse files Browse the repository at this point in the history
  • Loading branch information
dmengelt committed Jul 17, 2023
1 parent 2c66408 commit e5d2514
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/button-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,9 @@ export class ButtonManager {
if (!this.oldInvalidationValues) return true;

const newValues = this.getInvalidationValues(newConfig);
return newValues.some((value, index) => value !== this.oldInvalidationValues![index]);
return newValues.some(
(value, index) => JSON.stringify(value) !== JSON.stringify(this.oldInvalidationValues![index]),
);
}

private getInvalidationValues(config: Config): any[] {
Expand Down

0 comments on commit e5d2514

Please sign in to comment.