Fix: maxCount not properly loaded into UI config if it was a number

pull/30/head 2.0.3
Juraj Nyíri 3 years ago
parent bb67a1f253
commit 80210945fd

@ -19978,6 +19978,9 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement {
if (!lodash.isNil(config.runAfter)) {
this.config.runAfter = config.runAfter;
}
if (lodash.isNumber(this.config.maxCount)) {
this.config.maxCount = `${this.config.maxCount}`;
}
this.render();
};
this.configChanged = (newConfig) => {

@ -592,6 +592,10 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement {
this.config.runAfter = config.runAfter;
}
if (_.isNumber(this.config.maxCount)) {
this.config.maxCount = `${this.config.maxCount}`;
}
this.render();
};

Loading…
Cancel
Save