mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-24 16:23:09 +02:00
Fixed is_empty method
This commit is contained in:
@@ -1183,13 +1183,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