ui: eslint: fix undefined check master
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 15 Sep 2022 09:48:24 +0000 (11:48 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 16 Sep 2022 10:50:56 +0000 (12:50 +0200)
commita5785032bcdd360b2220f7a0c8eec160925105c9
tree34e8829fef720ba21e694036527ba11b14bd049a
parent49ce1b2f92bcd09166c5e93fc40c7eb6bd65ce18
ui: eslint: fix undefined check

'typeof' cannot return 'undefined' only the string '"undefined"', newer
eslint versions detect that as error

to fix it, directly check it for undefined instead of using typeof

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/storage/PBSEdit.js