mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Merge pull request #1478 from Dhravya/patch-1
Fixed `TypeError: Cannot read properties of undefined (reading 'website_id')`
This commit is contained in:
commit
8175791576
@ -36,7 +36,7 @@ export default function DashboardEdit({ websites }) {
|
|||||||
const [removed] = orderedWebsites.splice(source.index, 1);
|
const [removed] = orderedWebsites.splice(source.index, 1);
|
||||||
orderedWebsites.splice(destination.index, 0, removed);
|
orderedWebsites.splice(destination.index, 0, removed);
|
||||||
|
|
||||||
setOrder(orderedWebsites.map(({ website_id }) => website_id));
|
setOrder(orderedWebsites.map((website) => website?.website_id || 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleSave() {
|
function handleSave() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user