mirror of
https://github.com/idanoo/autobrr
synced 2025-07-25 01:39:13 +00:00
fix(web): infinitely retry queries, remove ago
from age cells (#528)
- infinitely retry web queries so we avoid the "failed to fetch" error when the web server is unavailable - remove the "ago" suffix from age cells (closes #497)
This commit is contained in:
parent
b6ba23d0ee
commit
1b6fd01575
2 changed files with 8 additions and 2 deletions
|
@ -12,7 +12,7 @@ interface CellProps {
|
|||
|
||||
export const AgeCell = ({ value }: CellProps) => (
|
||||
<div className="text-sm text-gray-500" title={value}>
|
||||
{formatDistanceToNowStrict(new Date(value), { addSuffix: true })}
|
||||
{formatDistanceToNowStrict(new Date(value), { addSuffix: false })}
|
||||
</div>
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue