mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 00:55:37 +01:00
Update language. Resolve loading reports error.
This commit is contained in:
parent
743e7c0477
commit
5168cf2a1b
5 changed files with 14 additions and 20 deletions
|
|
@ -51,19 +51,15 @@ export function ReportsTable({
|
|||
filterValue={filterValue}
|
||||
>
|
||||
{row => {
|
||||
const {
|
||||
id,
|
||||
userId: reportOwnerId,
|
||||
website: { domain, userId: websiteOwnerId },
|
||||
} = row;
|
||||
const { id, userId: reportOwnerId, website } = row;
|
||||
if (showDomain) {
|
||||
row.domain = domain;
|
||||
row.domain = website.domain;
|
||||
}
|
||||
|
||||
return (
|
||||
<Flexbox gap={10}>
|
||||
<LinkButton href={`/reports/${id}`}>{formatMessage(labels.view)}</LinkButton>
|
||||
{!showDomain || user.id === reportOwnerId || user.id === websiteOwnerId}
|
||||
{!showDomain || user.id === reportOwnerId || user.id === website?.userId}
|
||||
<Button onClick={() => setReport(row)}>
|
||||
<Icon>
|
||||
<Icons.Trash />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue