From c9428e4383c18e424fc9c17db867bc2a066cdaf1 Mon Sep 17 00:00:00 2001 From: mikebender Date: Mon, 9 Dec 2024 15:07:54 -0500 Subject: [PATCH] fix: Table plugins - pass through deprecated props - 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 --- 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} /> );