]> git.proxmox.com Git - proxmox-widget-toolkit.git/blobdiff - form/RRDTypeSelector.js
make eslint 100% happy
[proxmox-widget-toolkit.git] / form / RRDTypeSelector.js
index f7f7f264cb465254e7671ec32cbd94700d6b0dbb..16cac2012f45a2b8f8660f087807d3f78ecc2247 100644 (file)
@@ -38,10 +38,10 @@ Ext.define('Proxmox.form.RRDTypeSelector', {
     },
     // save current selection in the state Provider so RRDView can read it
     getState: function() {
-       var ind = this.getStore().findExact('id', this.getValue());
-       var rec = this.getStore().getAt(ind);
+       let ind = this.getStore().findExact('id', this.getValue());
+       let rec = this.getStore().getAt(ind);
        if (!rec) {
-           return;
+           return undefined;
        }
        return {
            id: rec.data.id,