mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 09:45:04 +01:00
fix: further address issue in #1043
This commit is contained in:
parent
0349b82e9a
commit
7c744589ae
@ -18,7 +18,7 @@ export default function MetricsBar({ websiteId, className }) {
|
||||
const { startDate, endDate, modified } = dateRange;
|
||||
const [format, setFormat] = useState(true);
|
||||
const {
|
||||
query: { url, ref },
|
||||
query: { url, referrer },
|
||||
} = usePageQuery();
|
||||
|
||||
const { data, error, loading } = useFetch(
|
||||
@ -28,11 +28,11 @@ export default function MetricsBar({ websiteId, className }) {
|
||||
start_at: +startDate,
|
||||
end_at: +endDate,
|
||||
url,
|
||||
ref,
|
||||
referrer,
|
||||
},
|
||||
headers: { [TOKEN_HEADER]: shareToken?.token },
|
||||
},
|
||||
[modified, url, ref],
|
||||
[modified, url, referrer],
|
||||
);
|
||||
|
||||
const formatFunc = format
|
||||
|
Loading…
Reference in New Issue
Block a user