Skip to content

Commit

Permalink
fix: Table plugins - pass through deprecated props (#2308) (#2309)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
mofojed authored Dec 10, 2024
1 parent 181739b commit ada5ffb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/dashboard-core-plugins/src/panels/IrisGridPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand All @@ -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}
/>
</div>
);
Expand Down

0 comments on commit ada5ffb

Please sign in to comment.