ciyidogan commited on
Commit
a97966b
·
verified ·
1 Parent(s): 55339eb

Update flare-ui/src/app/dialogs/api-edit-dialog/api-edit-dialog.component.ts

Browse files
flare-ui/src/app/dialogs/api-edit-dialog/api-edit-dialog.component.ts CHANGED
@@ -499,6 +499,9 @@ export default class ApiEditDialogComponent implements OnInit {
499
  response_mappings: formValue.response_mappings || []
500
  };
501
 
 
 
 
502
  if (formValue.proxy) {
503
  apiData.proxy = formValue.proxy;
504
  }
@@ -515,12 +518,17 @@ export default class ApiEditDialogComponent implements OnInit {
515
  apiData.auth.token_refresh_endpoint = formValue.auth.token_refresh_endpoint;
516
  apiData.auth.token_refresh_body = auth_token_refresh_body;
517
  }
 
 
 
518
  }
519
 
 
520
  if (this.data.mode === 'edit' && formValue.last_update_date) {
521
  apiData.last_update_date = formValue.last_update_date;
522
  }
523
 
 
524
  return apiData;
525
  }
526
 
 
499
  response_mappings: formValue.response_mappings || []
500
  };
501
 
502
+ // Proxy - null olarak gönder boşsa
503
+ apiData.proxy = formValue.proxy || null;
504
+
505
  if (formValue.proxy) {
506
  apiData.proxy = formValue.proxy;
507
  }
 
518
  apiData.auth.token_refresh_endpoint = formValue.auth.token_refresh_endpoint;
519
  apiData.auth.token_refresh_body = auth_token_refresh_body;
520
  }
521
+ }else {
522
+ // Auth disabled olsa bile null olarak gönder
523
+ apiData.auth = null;
524
  }
525
 
526
+ // Edit modunda last_update_date'i ekle
527
  if (this.data.mode === 'edit' && formValue.last_update_date) {
528
  apiData.last_update_date = formValue.last_update_date;
529
  }
530
 
531
+ console.log('Prepared API data:', apiData);
532
  return apiData;
533
  }
534