diff --git a/components/pages/WebsiteList.js b/components/pages/WebsiteList.js index dfd041a1..24ac8bec 100644 --- a/components/pages/WebsiteList.js +++ b/components/pages/WebsiteList.js @@ -27,7 +27,7 @@ export default function WebsiteList({ websites, showCharts, limit }) { const ordered = useMemo( () => websites - .map(website => ({ ...website, order: websiteOrder.indexOf(website.id) || 0 })) + .map(website => ({ ...website, order: websiteOrder.indexOf(website.websiteUuid) || 0 })) .sort(firstBy('order')), [websites, websiteOrder], ); @@ -46,11 +46,11 @@ export default function WebsiteList({ websites, showCharts, limit }) { return (
- {ordered.map(({ id, name, domain }, index) => + {ordered.map(({ websiteUuid, name, domain }, index) => index < limit ? ( -
+
} size="small" tooltip={} - tooltipId={`button-share-${row.id}`} + tooltipId={`button-share-${row.websiteUuid}`} onClick={() => setShowUrl(row)} /> )} @@ -56,42 +56,46 @@ export default function WebsiteSettings() { tooltip={ } - tooltipId={`button-code-${row.id}`} + tooltipId={`button-code-${row.websiteUuid}`} onClick={() => setShowCode(row)} />