From eabc635ba2d9e390ef4ec17f18f831b4927027a2 Mon Sep 17 00:00:00 2001 From: George Wan Date: Thu, 12 Oct 2023 08:08:58 -0700 Subject: [PATCH] Change cached column param to readonly Co-authored-by: Mike Bender --- packages/iris-grid/src/IrisGridTreeTableModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/iris-grid/src/IrisGridTreeTableModel.ts b/packages/iris-grid/src/IrisGridTreeTableModel.ts index 6fc4577214..003d58177c 100644 --- a/packages/iris-grid/src/IrisGridTreeTableModel.ts +++ b/packages/iris-grid/src/IrisGridTreeTableModel.ts @@ -192,7 +192,7 @@ class IrisGridTreeTableModel extends IrisGridTableModelTemplate< ); getCachedGroupedColumnSet = memoize( - (groupedColumns: Column[]) => + (groupedColumns: readonly Column[]) => new Set( groupedColumns.map(c1 => this.columns.findIndex(c2 => c1.name === c2.name)