We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 813c17b commit 4044e7dCopy full SHA for 4044e7d
client/src/app/dashboard/table-all/table-all.component.ts
@@ -135,10 +135,9 @@ export class TableAllComponent implements OnInit {
135
});
136
137
dialogRef.afterClosed().subscribe(dialogResult => {
138
- if (dialogResult === 'CancelAdd') {
+ if (!dialogResult || dialogResult === 'CancelAdd') {
139
dialogRef.close();
140
} else {
141
- console.log('dialogResult', dialogResult);
142
this.apiService.postInstance(this.type, dialogResult.name).subscribe((result: Instance) => {
143
this.dataSource.data.push(result);
144
}, err => {
0 commit comments