mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Fix chart error that caused query editor to close (#2652)
This commit is contained in:
committed by
Karl Burtram
parent
c0917e9276
commit
216b6eecc0
@@ -319,7 +319,7 @@ export class ChartView implements IPanelView {
|
|||||||
});
|
});
|
||||||
setFunc = (val: string) => {
|
setFunc = (val: string) => {
|
||||||
if (!isUndefinedOrNull(val)) {
|
if (!isUndefinedOrNull(val)) {
|
||||||
input.value = val;
|
numberInput.value = val;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.optionDisposables.push(attachInputBoxStyler(numberInput, this._themeService));
|
this.optionDisposables.push(attachInputBoxStyler(numberInput, this._themeService));
|
||||||
@@ -334,7 +334,7 @@ export class ChartView implements IPanelView {
|
|||||||
this._state = val;
|
this._state = val;
|
||||||
if (this.state.options) {
|
if (this.state.options) {
|
||||||
for (let key in this.state.options) {
|
for (let key in this.state.options) {
|
||||||
if (this.state.options.hasOwnProperty(key)) {
|
if (this.state.options.hasOwnProperty(key) && this.optionMap[key]) {
|
||||||
this.options[key] = this.state.options[key];
|
this.options[key] = this.state.options[key];
|
||||||
this.optionMap[key].set(this.state.options[key]);
|
this.optionMap[key].set(this.state.options[key]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user