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 authored and mofojed committed Jul 23, 2024
1 parent e9e49e6 commit f859e13
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 @@ -422,6 +422,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 @@ -432,6 +437,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 f859e13

Please sign in to comment.