We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d8eebf commit 36abc63Copy full SHA for 36abc63
ui/scripts/system.js
@@ -17228,9 +17228,16 @@
17228
}
17229
},
17230
dataProvider: function (args) {
17231
- var items = gpugroupObj.vgpu.sort(function(a, b) {
17232
- return a.maxvgpuperpgpu >= b.maxvgpuperpgpu;
17233
- });
+ var items;
+
+ if(typeof(gpugroupObj.vgpu) != "undefined") {
17234
+ items = gpugroupObj.vgpu.sort(function(a, b) {
17235
+ return a.maxvgpuperpgpu >= b.maxvgpuperpgpu;
17236
+ });
17237
+ }
17238
+ else {
17239
+ items = gpugroupObj.vgpu;
17240
17241
$(items).each(function () {
17242
this.maxresolution = (this.maxresolutionx == null || this.maxresolutionx == 0
17243
|| this.maxresolutiony == null || this.maxresolutiony == 0)
0 commit comments