Fix: Add missing nullsafe for admin user table

This commit is contained in:
Christoph Kluge 2024-04-24 13:47:29 +02:00
parent a22340196f
commit f80123c85d
2 changed files with 2 additions and 2 deletions

View File

@ -361,7 +361,7 @@
<div style="margin: 10px;"> <div style="margin: 10px;">
<Card color="warning"> <Card color="warning">
<CardHeader> <CardHeader>
<CardTitle>Missing Metrics/Reseources</CardTitle> <CardTitle>Missing Metrics/Resources</CardTitle>
</CardHeader> </CardHeader>
<CardBody> <CardBody>
{#if missingMetrics.length > 0} {#if missingMetrics.length > 0}

View File

@ -20,7 +20,7 @@
<td>{user.name}</td> <td>{user.name}</td>
<td>{user.projects}</td> <td>{user.projects}</td>
<td>{user.email}</td> <td>{user.email}</td>
<td><code>{user.roles.join(", ")}</code></td> <td><code>{user?.roles ? user.roles.join(", ") : "No Roles"}</code></td>
<td> <td>
{#if !jwt} {#if !jwt}
<Button color="success" on:click={getUserJwt(user.username)} <Button color="success" on:click={getUserJwt(user.username)}