diff --git a/applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js b/applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js index 247841e7827..b3df08913a5 100644 --- a/applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js +++ b/applications/luci-app-hd-idle/htdocs/luci-static/resources/view/hd_idle.js @@ -9,7 +9,7 @@ function disk(devs, options, section_id) { var disk = devs.find(function(itm){ return itm.name == v; }); var out = ''; if(disk != undefined){ - out = options.map(function(opt){ return disk[opt].trim(); }); + out = options.map(function(opt){ return disk[opt]?.trim() || null; }); out = out.filter(function(o){ return o != ''; }); out = out.join(' '); }