mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-11-10 08:57:25 +01:00
fix missing key tag on piecharts
This commit is contained in:
parent
3014f59cc2
commit
1771883754
@ -57,7 +57,6 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
const paging = { itemsPerPage: 10, page: 1 }; // Top 10
|
const paging = { itemsPerPage: 10, page: 1 }; // Top 10
|
||||||
// const sorting = { field: "totalCores", order: "DESC" };
|
|
||||||
$: topUserQuery = queryStore({
|
$: topUserQuery = queryStore({
|
||||||
client: client,
|
client: client,
|
||||||
query: gql`
|
query: gql`
|
||||||
@ -203,6 +202,7 @@
|
|||||||
<Col class="p-2">
|
<Col class="p-2">
|
||||||
<div bind:clientWidth={colWidth1}>
|
<div bind:clientWidth={colWidth1}>
|
||||||
<h4 class="text-center">Top Users on {cluster.charAt(0).toUpperCase() + cluster.slice(1)}</h4>
|
<h4 class="text-center">Top Users on {cluster.charAt(0).toUpperCase() + cluster.slice(1)}</h4>
|
||||||
|
{#key $topUserQuery.data}
|
||||||
{#if $topUserQuery.fetching}
|
{#if $topUserQuery.fetching}
|
||||||
<Spinner/>
|
<Spinner/>
|
||||||
{:else if $topUserQuery.error}
|
{:else if $topUserQuery.error}
|
||||||
@ -215,6 +215,7 @@
|
|||||||
entities={$topUserQuery.data.topUser.map((tu) => tu.id)}
|
entities={$topUserQuery.data.topUser.map((tu) => tu.id)}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
{/key}
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
<Col class="px-4 py-2">
|
<Col class="px-4 py-2">
|
||||||
@ -251,6 +252,7 @@
|
|||||||
</Col>
|
</Col>
|
||||||
<Col class="p-2">
|
<Col class="p-2">
|
||||||
<h4 class="text-center">Top Projects on {cluster.charAt(0).toUpperCase() + cluster.slice(1)}</h4>
|
<h4 class="text-center">Top Projects on {cluster.charAt(0).toUpperCase() + cluster.slice(1)}</h4>
|
||||||
|
{#key $topProjectQuery.data}
|
||||||
{#if $topProjectQuery.fetching}
|
{#if $topProjectQuery.fetching}
|
||||||
<Spinner/>
|
<Spinner/>
|
||||||
{:else if $topProjectQuery.error}
|
{:else if $topProjectQuery.error}
|
||||||
@ -263,6 +265,7 @@
|
|||||||
entities={$topProjectQuery.data.topProjects.map((tp) => tp.id)}
|
entities={$topProjectQuery.data.topProjects.map((tp) => tp.id)}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
{/key}
|
||||||
</Col>
|
</Col>
|
||||||
<Col class="px-4 py-2">
|
<Col class="px-4 py-2">
|
||||||
{#key $topProjectQuery.data}
|
{#key $topProjectQuery.data}
|
||||||
|
Loading…
Reference in New Issue
Block a user