mirror of
https://github.com/umami-software/umami.git
synced 2026-02-16 10:35:35 +01:00
Pass domain to realtime components.
This commit is contained in:
parent
7d3334ccce
commit
5657a64c77
8 changed files with 9 additions and 75 deletions
|
|
@ -17,10 +17,10 @@ export default function RealtimeHome() {
|
|||
if (data?.length) {
|
||||
router.push(`realtime/${data[0].id}`);
|
||||
}
|
||||
}, [data]);
|
||||
}, [data, router]);
|
||||
|
||||
return (
|
||||
<Page loading={isLoading || !data} error={error}>
|
||||
<Page loading={isLoading || data?.length > 0} error={error}>
|
||||
<PageHeader title={formatMessage(labels.realtime)} />
|
||||
{data?.length === 0 && <EmptyPlaceholder message={formatMessage(messages.noWebsites)} />}
|
||||
</Page>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue