feat: improve listens report response time

Reduce response time for larger intervals (e.g. all time) from 9 seconds
to 150ms in my tests.
This commit is contained in:
Julian Tölle 2023-09-16 23:14:35 +02:00
parent 26087e4e6d
commit 89440daf7b
2 changed files with 19 additions and 13 deletions

View file

@ -77,7 +77,7 @@ export const ReportListens: React.FC = () => {
{isLoading && <Spinner className="m-8" />}
{!reportHasItems && !isLoading && (
<div>
<p>Report is emtpy! :(</p>
<p>Report is empty! :(</p>
</div>
)}
{reportHasItems && (
@ -128,7 +128,7 @@ const ReportGraph: React.FC<{
<AreaChart
data={dataLocal}
margin={{
left: -20,
left: -5,
}}
>
<defs>