[pve-devel] [PATCH widget-toolkit 06/11] disk list: fix minor usage renderer issue

Fabian Ebner f.ebner at proxmox.com
Fri Apr 23 12:14:56 CEST 2021


If there is extended information, the variable is overwritten anyways.
Avoid appending an extra space if there is no extended information.

Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 src/panel/DiskList.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/panel/DiskList.js b/src/panel/DiskList.js
index cbf163c..ad965c8 100644
--- a/src/panel/DiskList.js
+++ b/src/panel/DiskList.js
@@ -237,7 +237,7 @@ Ext.define('Proxmox.DiskList', {
 	    width: 150,
 	    sortable: false,
 	    renderer: function(v, metaData, rec) {
-		let extendedInfo = ' ';
+		let extendedInfo = '';
 		if (rec) {
 		    let types = [];
 		    if (rec.data.osdid !== undefined && rec.data.osdid >= 0) {
-- 
2.20.1





More information about the pve-devel mailing list