mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-24 02:06:19 +01:00
Fixed website undefined issue.
This commit is contained in:
parent
b663146ad5
commit
c567eddff9
@ -9,9 +9,9 @@ export default function RealtimeDetailsPage() {
|
||||
const { id: websiteId } = router.query;
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { get, useQuery } = useApi();
|
||||
const { data: website } = useQuery(['websites', websiteId], () =>
|
||||
websiteId ? get(`/websites/${websiteId}`, { enabled: !!websiteId }) : null,
|
||||
);
|
||||
const { data: website } = useQuery(['websites', websiteId], () => get(`/websites/${websiteId}`), {
|
||||
enabled: !!websiteId,
|
||||
});
|
||||
const title = `${formatMessage(labels.realtime)}${website?.name ? ` - ${website.name}` : ''}`;
|
||||
|
||||
if (!websiteId) {
|
||||
|
Loading…
Reference in New Issue
Block a user