Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Table plugins - pass through deprecated props (#2308) #2309

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading