UI: Fixed description for default created queues

This commit is contained in:
fe-dev 2022-06-06 17:47:02 +03:00
parent 2fecf128a0
commit b61ce04420

View File

@ -158,6 +158,8 @@ export class QueueFormComponent implements ControlValueAccessor, OnInit, OnDestr
this.modelValue = value; this.modelValue = value;
if (isDefinedAndNotNull(this.modelValue)) { if (isDefinedAndNotNull(this.modelValue)) {
this.queueFormGroup.patchValue(this.modelValue, {emitEvent: false}); this.queueFormGroup.patchValue(this.modelValue, {emitEvent: false});
this.queueFormGroup.get('additionalInfo').get('description')
.patchValue(this.modelValue.additionalInfo?.description, {emitEvent: false});
this.submitStrategyTypeChanged(); this.submitStrategyTypeChanged();
} }
if (!this.disabled && !this.queueFormGroup.valid) { if (!this.disabled && !this.queueFormGroup.valid) {