Respect user updateInterval when set to zero

This commit is contained in:
Alicia Sykes 2022-01-18 23:56:29 +00:00
parent 88727cf2e2
commit 2e593fcf92
1 changed files with 2 additions and 1 deletions

View File

@ -440,7 +440,8 @@ export default {
widgetOptions() {
const options = this.widget.options || {};
const useProxy = !!this.widget.useProxy;
const updateInterval = this.widget.updateInterval || null;
const updateInterval = this.widget.updateInterval !== undefined
? this.widget.updateInterval : null;
return { useProxy, updateInterval, ...options };
},
/* A unique string to reference the widget by */