Skip to content

Commit f8f2fad

Browse files
committed
fix error when no labels
1 parent 6bf0248 commit f8f2fad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OpenFlow/src/public/Controllers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2705,7 +2705,7 @@ export class NoderedCtrl {
27052705
// // this.GetNoderedInstance();
27062706
this.GetNoderedInstance();
27072707
this.labels = await NoderedUtil.GetKubeNodeLabels(null);
2708-
this.keys = Object.keys(this.labels);
2708+
if (this.labels != null) this.keys = Object.keys(this.labels);
27092709
this.loading = false;
27102710
if (!this.$scope.$$phase) { this.$scope.$apply(); }
27112711

0 commit comments

Comments
 (0)