mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-21 15:27:30 +01:00
add nullsafes to frontend
This commit is contained in:
@@ -167,7 +167,7 @@
|
||||
|
||||
<p class="mb-2">
|
||||
{#if job.numNodes == 1}
|
||||
{job.resources[0].hostname}
|
||||
{job?.resources[0]?.hostname}
|
||||
{:else}
|
||||
{job.numNodes}
|
||||
{/if}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user