WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 40e70ca

Browse files
committed
AG-8627 Mute eslint error @typescript-eslint/no-unsafe-enum-comparison
1 parent 48f4fa1 commit 40e70ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ag-charts-community/src/chart/interaction/zoomManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ export class ZoomManager extends BaseManager {
630630
if (zoom && changes) {
631631
// The `zoom` is outdated, let's patch in the updates from `changes`.
632632
const state = this.state.stateValue();
633-
for (const dir of ['x', 'y'] as const) {
633+
for (const dir of [ChartAxisDirection.X, ChartAxisDirection.Y] as const) {
634634
for (const id of strictObjectKeys(changes)) {
635635
if (state[id]?.direction === dir) {
636636
zoom[dir] = changes[id];

0 commit comments

Comments
 (0)