Skip to content
Snippets Groups Projects
Commit 7e032cd3 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #13271 TIME 0:10 fix empty select

parent 90654746
No related branches found
No related tags found
No related merge requests found
......@@ -394,7 +394,7 @@ export class PluginSelectSearchComponent implements OnInit, OnDestroy, AfterView
if (ev.source._selected) {
this.selected = this.formControlSelect.value;
} else {
this.selected = this.selected.filter((val: any) => val.id !== ev.source.value.id);
this.selected = this.selected.length > 0 ? this.selected.filter((val: any) => val.id !== ev.source.value.id) : [];
}
}
}
......
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