ui: datastore summary: handle missing snapshot of a types
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
		@ -72,6 +72,7 @@ Ext.define('PBS.DataStoreInfo', {
 | 
				
			|||||||
			(gcstatus['disk-bytes'] || Infinity);
 | 
								(gcstatus['disk-bytes'] || Infinity);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	    let countstext = function(count) {
 | 
						    let countstext = function(count) {
 | 
				
			||||||
 | 
							count = count || {};
 | 
				
			||||||
		return `${count.groups || 0} ${gettext('Groups')}, ${count.snapshots || 0} ${gettext('Snapshots')}`;
 | 
							return `${count.groups || 0} ${gettext('Groups')}, ${count.snapshots || 0} ${gettext('Snapshots')}`;
 | 
				
			||||||
	    };
 | 
						    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user