Skip to content

Commit

Permalink
fix: add back panel prop to IrisGrid Plugin (#2155)
Browse files Browse the repository at this point in the history
Closes #2093 (For now, will reopen ticket after merge for better
solution to handle deprecated `panel` prop)
  • Loading branch information
AkshatJawne committed Jul 18, 2024
1 parent 958b011 commit 6362eb7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/dashboard-core-plugins/src/panels/IrisGridPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,11 @@ export class IrisGridPanel extends PureComponent<
return null;
}

// TODO #2093: Find a better way to handle deprecated panel prop
const deprecatedProps = {
panel: this,
};

return (
<div className="iris-grid-plugin">
<Plugin
Expand All @@ -433,6 +438,8 @@ export class IrisGridPanel extends PureComponent<
table={model.table}
onStateChange={this.handlePluginStateChange}
pluginState={pluginState}
// eslint-disable-next-line react/jsx-props-no-spreading
{...deprecatedProps}
/>
</div>
);
Expand Down

0 comments on commit 6362eb7

Please sign in to comment.