Skip to content

Commit 6362eb7

Browse files
authored
fix: add back panel prop to IrisGrid Plugin (#2155)
Closes #2093 (For now, will reopen ticket after merge for better solution to handle deprecated `panel` prop)
1 parent 958b011 commit 6362eb7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/dashboard-core-plugins/src/panels/IrisGridPanel.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,11 @@ export class IrisGridPanel extends PureComponent<
423423
return null;
424424
}
425425

426+
// TODO #2093: Find a better way to handle deprecated panel prop
427+
const deprecatedProps = {
428+
panel: this,
429+
};
430+
426431
return (
427432
<div className="iris-grid-plugin">
428433
<Plugin
@@ -433,6 +438,8 @@ export class IrisGridPanel extends PureComponent<
433438
table={model.table}
434439
onStateChange={this.handlePluginStateChange}
435440
pluginState={pluginState}
441+
// eslint-disable-next-line react/jsx-props-no-spreading
442+
{...deprecatedProps}
436443
/>
437444
</div>
438445
);

0 commit comments

Comments
 (0)