fix submit handler for saving api connector details form when in create mode
@@ -109,7 +109,9 @@ export class ApiConnectorInfoComponent implements OnInit {
onSubmit(): void {
if (this.apiConnectorDataForm.valid) {
- if (this.apiConnectorDataForm.dirty) {
+ console.log('1');
+ if ((!this.createMode && this.apiConnectorDataForm.dirty) || this.createMode) {
+ console.log('2');
const { name, description, host, basePath } = this.apiConnectorDataForm.value;
const apiConnectorData = {
...this.apiConnectorData,
