mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-08-13 22:22:59 +02:00
display energySumary only if energy data is present
This commit is contained in:
@@ -310,10 +310,10 @@
|
||||
</Col>
|
||||
</Row>
|
||||
|
||||
{#if $initq?.data}
|
||||
{#if $initq?.data && $initq.data.job.energyFootprint.length != 0}
|
||||
<Row class="mb-3">
|
||||
<Col>
|
||||
<EnergySummary job={$initq.data.job}/>
|
||||
<EnergySummary jobId={$initq.data.job.jobId} jobEnergy={$initq.data.job.energy} jobEnergyFootprint={$initq.data.job.energyFootprint}/>
|
||||
</Col>
|
||||
</Row>
|
||||
{/if}
|
||||
|
Reference in New Issue
Block a user