mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Canvas: Inconsistent border behavior (#61794)
This commit is contained in:
@@ -153,7 +153,7 @@ export class CanvasPanel extends Component<Props, State> {
|
||||
};
|
||||
|
||||
shouldComponentUpdate(nextProps: Props, nextState: State) {
|
||||
const { width, height, data } = this.props;
|
||||
const { width, height, data, options } = this.props;
|
||||
let changed = false;
|
||||
|
||||
if (width !== nextProps.width || height !== nextProps.height) {
|
||||
@@ -166,6 +166,11 @@ export class CanvasPanel extends Component<Props, State> {
|
||||
changed = true;
|
||||
}
|
||||
|
||||
if (options !== nextProps.options && !this.scene.ignoreDataUpdate) {
|
||||
this.scene.updateData(nextProps.data);
|
||||
changed = true;
|
||||
}
|
||||
|
||||
if (this.state.refresh !== nextState.refresh) {
|
||||
changed = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user