Spaces:
Building
Building
Update flare-ui/src/app/dialogs/version-edit-dialog/version-edit-dialog.component.ts
Browse files
flare-ui/src/app/dialogs/version-edit-dialog/version-edit-dialog.component.ts
CHANGED
@@ -206,7 +206,7 @@ export default class VersionEditDialogComponent implements OnInit {
|
|
206 |
// Examples ve parameters'ı ayrı olarak ekle
|
207 |
if (intent.examples && Array.isArray(intent.examples)) {
|
208 |
const examplesArray = group.get('examples') as FormArray;
|
209 |
-
intent.examples.forEach((example:
|
210 |
examplesArray.push(this.fb.control(example));
|
211 |
});
|
212 |
}
|
@@ -470,7 +470,7 @@ export default class VersionEditDialogComponent implements OnInit {
|
|
470 |
caption: intent.caption,
|
471 |
locale: intent.locale,
|
472 |
detection_prompt: intent.detection_prompt,
|
473 |
-
examples: Array.isArray(intent.examples) ? intent.examples
|
474 |
parameters: Array.isArray(intent.parameters) ? intent.parameters.map((param: any) => ({
|
475 |
name: param.name,
|
476 |
caption: param.caption,
|
@@ -541,7 +541,7 @@ export default class VersionEditDialogComponent implements OnInit {
|
|
541 |
caption: intent.caption,
|
542 |
locale: intent.locale,
|
543 |
detection_prompt: intent.detection_prompt,
|
544 |
-
examples: Array.isArray(intent.examples) ? intent.examples
|
545 |
parameters: Array.isArray(intent.parameters) ? intent.parameters : [],
|
546 |
action: intent.action,
|
547 |
fallback_timeout_prompt: intent.fallback_timeout_prompt,
|
|
|
206 |
// Examples ve parameters'ı ayrı olarak ekle
|
207 |
if (intent.examples && Array.isArray(intent.examples)) {
|
208 |
const examplesArray = group.get('examples') as FormArray;
|
209 |
+
intent.examples.forEach((example: any) => {
|
210 |
examplesArray.push(this.fb.control(example));
|
211 |
});
|
212 |
}
|
|
|
470 |
caption: intent.caption,
|
471 |
locale: intent.locale,
|
472 |
detection_prompt: intent.detection_prompt,
|
473 |
+
examples: Array.isArray(intent.examples) ? intent.examples : [],
|
474 |
parameters: Array.isArray(intent.parameters) ? intent.parameters.map((param: any) => ({
|
475 |
name: param.name,
|
476 |
caption: param.caption,
|
|
|
541 |
caption: intent.caption,
|
542 |
locale: intent.locale,
|
543 |
detection_prompt: intent.detection_prompt,
|
544 |
+
examples: Array.isArray(intent.examples) ? intent.examples : [],
|
545 |
parameters: Array.isArray(intent.parameters) ? intent.parameters : [],
|
546 |
action: intent.action,
|
547 |
fallback_timeout_prompt: intent.fallback_timeout_prompt,
|