From aef9a2233120c92d2f1b994e934b4b2f91505f56 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 1 Jan 2023 22:27:23 +0100 Subject: [PATCH] web/admin: fix error in outpost form dropdown Signed-off-by: Jens Langhammer --- web/src/admin/outposts/OutpostForm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/admin/outposts/OutpostForm.ts b/web/src/admin/outposts/OutpostForm.ts index a213bf5bc..fba5ba9f9 100644 --- a/web/src/admin/outposts/OutpostForm.ts +++ b/web/src/admin/outposts/OutpostForm.ts @@ -166,7 +166,7 @@ export class OutpostForm extends ModelForm { return groupBy(items, (item) => item.verboseName); }} .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) { selected = true; }