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 <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-02-19 15:40:24 +01:00 committed by Dietmar Maurer
parent 6d62e69f9a
commit f26276bc4e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}