mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
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:
parent
26087e4e6d
commit
89440daf7b
2 changed files with 19 additions and 13 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue