From 2a08084d990d1a1581fb4504639c0059879f97e2 Mon Sep 17 00:00:00 2001 From: Mike Bender Date: Mon, 9 Dec 2024 15:24:16 -0500 Subject: [PATCH] fix: Table plugins - pass through deprecated props (#2308) - Deprecated props were not being passed through at all to the plugins - We need to continue to pass through the deprecated props until we have a replacement - Partial #2274 --- packages/dashboard-core-plugins/src/panels/IrisGridPanel.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/dashboard-core-plugins/src/panels/IrisGridPanel.tsx b/packages/dashboard-core-plugins/src/panels/IrisGridPanel.tsx index d73632fcb1..f25d616fb6 100644 --- a/packages/dashboard-core-plugins/src/panels/IrisGridPanel.tsx +++ b/packages/dashboard-core-plugins/src/panels/IrisGridPanel.tsx @@ -423,7 +423,6 @@ export class IrisGridPanel extends PureComponent< } // TODO #2093: Find a better way to handle deprecated panel prop - // eslint-disable-next-line @typescript-eslint/no-unused-vars const deprecatedProps = { panel: this, }; @@ -440,6 +439,8 @@ export class IrisGridPanel extends PureComponent< selectedRanges={this.irisGrid.current?.state.selectedRanges} onStateChange={this.handlePluginStateChange} pluginState={pluginState} + // eslint-disable-next-line react/jsx-props-no-spreading + {...deprecatedProps} /> );