UBER-654 Fix table view stats display (#3540)

Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2023-08-01 17:32:03 +07:00 committed by GitHub
parent 7cabfc746e
commit 746d8a1c41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -362,7 +362,7 @@
{#if departmentStaff.length}
{#if loading}
<Loading />
{:else if viewlet}
{:else}
<div class="ac-header full divide">
<div class="clear-mins" />
<div class="ac-header-full small-gap">
@ -370,15 +370,17 @@
<ViewletSettingButton viewletQuery={{ _id: hr.viewlet.StaffStats }} bind:viewlet bind:preference bind:loading />
</div>
</div>
{#await createConfig(viewlet, preference, month) then config}
<TableBrowser
tableId={'exportableData'}
_class={hr.mixin.Staff}
query={{ _id: { $in: departmentStaff.map((it) => it._id) } }}
{config}
options={viewlet.options}
/>
{/await}
{#if viewlet}
{#await createConfig(viewlet, preference, month) then config}
<TableBrowser
tableId={'exportableData'}
_class={hr.mixin.Staff}
query={{ _id: { $in: departmentStaff.map((it) => it._id) } }}
{config}
options={viewlet.options}
/>
{/await}
{/if}
{/if}
{:else}
<div class="flex-center h-full w-full flex-grow fs-title">