Skip to content
Snippets Groups Projects
Commit e746cc27 authored by Florent Poittevin's avatar Florent Poittevin
Browse files

fix: keyword input when backend return an array with a string empty

parent dfe8cc20
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ export class SharedKeywordInputPresentational extends SharedAbstractPresentation
}
ngOnInit(): void {
if (isNullOrUndefined(this.formControl.value) || !isArray(this.formControl.value)) {
if (isNullOrUndefined(this.formControl.value) || !isArray(this.formControl.value) || (this.formControl.value.length === 1 && this.formControl.value[0] === StringUtil.stringEmpty)) {
this.formControl.setValue([]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment