mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Merge pull request #2034 from ammar-madni/ammar-madni-fix-websiteId-undefined
Fix undefined websiteId in dynamic realtime page api request.
This commit is contained in:
commit
f564d36dae
@ -10,7 +10,7 @@ export default function RealtimeDetailsPage() {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { get, useQuery } = useApi();
|
||||
const { data: website } = useQuery(['websites', websiteId], () =>
|
||||
get(`/websites/${websiteId}`, { enabled: !!websiteId }),
|
||||
websiteId ? get(`/websites/${websiteId}`, { enabled: !!websiteId }) : null,
|
||||
);
|
||||
const title = `${formatMessage(labels.realtime)}${website?.name ? ` - ${website.name}` : ''}`;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user