add nullsafes to frontend

This commit is contained in:
Christoph Kluge
2026-03-13 14:20:45 +01:00
parent cbe46c3524
commit bc214f6cea
10 changed files with 36 additions and 36 deletions

View File

@@ -167,7 +167,7 @@
<p class="mb-2">
{#if job.numNodes == 1}
{job.resources[0].hostname}
{job?.resources[0]?.hostname}
{:else}
{job.numNodes}
{/if}

View File

@@ -340,7 +340,7 @@
</script>
<!-- Define $width Wrapper and NoData Card -->
{#if data && data[0].length > 0}
{#if data && data[0]?.length > 0}
<div bind:this={plotWrapper} bind:clientWidth={width}
style="background-color: rgba(255, 255, 255, 1.0);" class="rounded"
></div>