mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
@@ -1188,13 +1188,15 @@
|
||||
* @return {Boolean} Returns true or false.
|
||||
*/
|
||||
fn.is_empty = function(col, row) {
|
||||
if (typeof this.gridmap[col] !== 'undefined' &&
|
||||
typeof this.gridmap[col][row] !== 'undefined' &&
|
||||
this.gridmap[col][row] === false
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
if (typeof this.gridmap[col] !== 'undefined') {
|
||||
if(typeof this.gridmap[col][row] !== 'undefined' &&
|
||||
this.gridmap[col][row] === false
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user