summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management
diff options
context:
space:
mode:
Diffstat (limited to 'usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management')
-rw-r--r--usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts34
1 files changed, 19 insertions, 15 deletions
diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts
index 83d16a62..310a1cb9 100644
--- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts
+++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/subnet-params-model/subnet-params-model.component.ts
@@ -128,21 +128,23 @@ export class SubnetParamsModelComponent implements OnInit {
}
addCheckStatus() {
- this.connectionLinkTable.forEach((item) => {
- if (
- item.hasOwnProperty("linkId") &&
- typeof this.formData["sliceProfile_TN_connection_links"] !==
- "undefined" &&
- this.formData["sliceProfile_TN_connection_links"] !== "" &&
- this.formData["sliceProfile_TN_connection_links"] !== null &&
- item["linkId"] ===
- this.formData["sliceProfile_TN_connection_links"]
- ) {
- item.checked = true;
- } else {
- item.checked = false;
- }
- });
+ if(this.connectionLinkTable && this.connectionLinkTable.length>0){
+ this.connectionLinkTable.forEach((item) => {
+ if (
+ item.hasOwnProperty("linkId") &&
+ typeof this.formData["sliceProfile_TN_connection_links"] !==
+ "undefined" &&
+ this.formData["sliceProfile_TN_connection_links"] !== "" &&
+ this.formData["sliceProfile_TN_connection_links"] !== null &&
+ item["linkId"] ===
+ this.formData["sliceProfile_TN_connection_links"]
+ ) {
+ item.checked = true;
+ } else {
+ item.checked = false;
+ }
+ });
+ }
}
// changeResourceShare() {
@@ -218,6 +220,7 @@ export class SubnetParamsModelComponent implements OnInit {
getTableHeader(): void {
// Find the common key of all data
+ if(this.connectionLinkTable && this.connectionLinkTable.length>0){
let keyList: any[] = this.connectionLinkTable.map((item) => {
return Object.keys(item);
});
@@ -250,6 +253,7 @@ export class SubnetParamsModelComponent implements OnInit {
}
}
});
+ }
}
pageIndexChange(e) {