]> git.proxmox.com Git - pve-manager.git/commit
ui: dc: backup: fix job detail search
authorAaron Lauterer <a.lauterer@proxmox.com>
Tue, 22 Jun 2021 08:07:26 +0000 (10:07 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 22 Jun 2021 09:50:48 +0000 (11:50 +0200)
commit48129c7bed0fea5c84f31212fa4530449389997b
tree0c53388f275d6fb47c8057e8f38c1902c55d65e6
parent0168075b9dc9dea7fc0f959234e3916879b16ab2
ui: dc: backup: fix job detail search

'for...in array' returns the id in the array but not the value,
'for...of array' returns the values.

Another issue that I ran into was if the property did not exist.

Checking if the property evaluates to false will catch situations where
the property does not exist or is null. All other situations where there
is a value for the name, id or type, should evaluate to true if present
as they are strings or the VMID.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
www/manager6/dc/Backup.js