mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Fix data check in tables.
This commit is contained in:
parent
943c2c73d4
commit
8b9c3350b2
1 changed files with 3 additions and 3 deletions
|
|
@ -87,7 +87,7 @@ export default function MetricsTable({
|
|||
</div>
|
||||
</div>
|
||||
<div className={styles.body}>
|
||||
{data?.length === 0 && (
|
||||
{rankings?.length === 0 && (
|
||||
<div className={styles.empty}>
|
||||
<FormattedMessage
|
||||
id="message.no-data-available"
|
||||
|
|
@ -97,14 +97,14 @@ export default function MetricsTable({
|
|||
)}
|
||||
{limit
|
||||
? rankings.map(row => getRow(row))
|
||||
: data?.length > 0 && (
|
||||
: rankings.length > 0 && (
|
||||
<FixedSizeList height={500} itemCount={rankings.length} itemSize={30}>
|
||||
{Row}
|
||||
</FixedSizeList>
|
||||
)}
|
||||
</div>
|
||||
<div className={styles.footer}>
|
||||
{limit && data.length > limit && (
|
||||
{limit && rankings.length > limit && (
|
||||
<Button icon={<Arrow />} size="xsmall" onClick={() => onExpand(type)}>
|
||||
<div>
|
||||
<FormattedMessage id="button.more" defaultMessage="More" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue