From f26276bc4eceeb87ae84da08275f313f4ac494fa Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Fri, 19 Feb 2021 15:40:24 +0100 Subject: [PATCH] ui: tape/ChangerStatus: fixup for conditional the statement !a === "somestring" cannot be true since !a is either true or false and thus not a string Signed-off-by: Dominik Csapak --- www/tape/ChangerStatus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/tape/ChangerStatus.js b/www/tape/ChangerStatus.js index 5a1c6073..05ca8892 100644 --- a/www/tape/ChangerStatus.js +++ b/www/tape/ChangerStatus.js @@ -518,7 +518,7 @@ Ext.define('PBS.TapeManagement.ChangerStatus', { control: { 'grid[reference=drives]': { cellclick: function(table, td, ci, rec, tr, ri, e) { - if (!e.position.column.dataIndex === 'state') { + if (e.position.column.dataIndex !== 'state') { return; }