web/admin: fix error in outpost form dropdown
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
3980eea7c6
commit
aef9a22331
|
@ -166,7 +166,7 @@ export class OutpostForm extends ModelForm<Outpost, string> {
|
||||||
return groupBy(items, (item) => item.verboseName);
|
return groupBy(items, (item) => item.verboseName);
|
||||||
}}
|
}}
|
||||||
.selected=${(item: ServiceConnection, items: ServiceConnection[]): boolean => {
|
.selected=${(item: ServiceConnection, items: ServiceConnection[]): boolean => {
|
||||||
let selected = this.instance?.serviceConnection === sc.pk;
|
let selected = this.instance?.serviceConnection === item.pk;
|
||||||
if (items.length === 1 && !this.instance) {
|
if (items.length === 1 && !this.instance) {
|
||||||
selected = true;
|
selected = true;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue