[pbs-devel] [PATCH proxmox-backup 1/2] ui: fix error when reloading DataStoreContent
Stefan Reiter
s.reiter at proxmox.com
Tue Jul 28 14:32:10 CEST 2020
...when an entry is selected, that doesn't exist after the reload.
E.g. when one deletes selects a file within a snapshot and then clicks
the delete icon for said snapshot, focusRow would then fail and the
loading mask stay on until a reload.
Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
---
www/DataStoreContent.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/www/DataStoreContent.js b/www/DataStoreContent.js
index 5f407e98..1c08f56a 100644
--- a/www/DataStoreContent.js
+++ b/www/DataStoreContent.js
@@ -232,8 +232,10 @@ Ext.define('PBS.DataStoreContent', {
}
return selected === id;
}, undefined, true);
- view.setSelection(selection);
- view.getView().focusRow(selection);
+ if (selection) {
+ view.setSelection(selection);
+ view.getView().focusRow(selection);
+ }
}
Proxmox.Utils.setErrorMask(view, false);
--
2.20.1
More information about the pbs-devel
mailing list