Skip to content

Commit

Permalink
fix: Table plugins - pass through deprecated props
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
  • Loading branch information
mofojed committed Dec 9, 2024
1 parent 238f611 commit c9428e4
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 c9428e4

Please sign in to comment.