Commit 458f6bdb by Torkel Ödegaard Committed by GitHub

PanelEditor: Fixed issue with PanelModel change plugin type (#23949)

parent 76650e60
......@@ -214,10 +214,15 @@ describe('PanelModel', () => {
});
});
model.editSourceId = 1001;
model.changePlugin(newPlugin);
model.alert = { id: 2 };
});
it('should keep editSourceId', () => {
expect(model.editSourceId).toBe(1001);
});
it('should apply next panel option defaults', () => {
expect(model.getOptions().showThresholdLabels).toBeFalsy();
expect(model.getOptions().showThresholds).toBeUndefined();
......
......@@ -84,6 +84,7 @@ const mustKeepProps: { [str: string]: boolean } = {
queryRunner: true,
transformations: true,
fieldConfig: true,
editSourceId: true,
};
const defaults: any = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment