🔀 Merge pull request #1460 from alayham/fix-proxmox-widger-sorting

Fixed sorting by vmid in the proxmox widget
This commit is contained in:
Alicia Sykes
2024-02-24 22:29:57 +00:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -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);
}