From 9abd4b3e14b5904258cfe17fa24ee08a799b3410 Mon Sep 17 00:00:00 2001 From: Jens L Date: Wed, 22 Mar 2023 10:21:27 +0100 Subject: [PATCH] web/admin: fix error listing blueprints with missing metadata (#5041) Signed-off-by: Jens Langhammer --- web/src/admin/blueprints/BlueprintListPage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/admin/blueprints/BlueprintListPage.ts b/web/src/admin/blueprints/BlueprintListPage.ts index fe673a980..23463382b 100644 --- a/web/src/admin/blueprints/BlueprintListPage.ts +++ b/web/src/admin/blueprints/BlueprintListPage.ts @@ -126,8 +126,8 @@ export class BlueprintListPage extends TablePage { row(item: BlueprintInstance): TemplateResult[] { let description = undefined; const descKey = "blueprints.goauthentik.io/description"; - if (Object.hasOwn(item.metadata.labels, descKey)) { - description = item.metadata.labels[descKey]; + if (Object.hasOwn(item.metadata?.labels, descKey)) { + description = item.metadata?.labels[descKey]; } return [ html`
${item.name}