Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

Fixed sorting by vmid

Al Saleh05aaa1c9b55c
diff --git a/src/components/Widgets/Proxmox.vue b/src/components/Widgets/Proxmox.vue
index 78da0e18..5ae09fcc 100644
--- a/src/components/Widgets/Proxmox.vue
+++ b/src/components/Widgets/Proxmox.vue
@@ -94,7 +94,7 @@ export default {
}
},
processData(data) {
- this.data = data.data.sort((a, b) => a.vmid > b.vmid);
+ this.data = data.data.sort((a, b) => Number(a.vmid) > Number(b.vmid));
if (this.hideTemplates) {
this.data = this.data.filter(item => item.template !== 1);
}