web/admin: fix error listing blueprints with missing metadata (#5041)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
865138e7e7
commit
9abd4b3e14
|
@ -126,8 +126,8 @@ export class BlueprintListPage extends TablePage<BlueprintInstance> {
|
|||
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`<div>${item.name}</div>
|
||||
|
|
Reference in New Issue