Refactored dashboard sort logic.

This commit is contained in:
Mike Cao committed 2022-08-04 21:37:18 -07:00
1 parent 42e87a4691
commit 62b032ab19
8 files changed
+32 -40

No files matched your search

-11
View File
@@ -78,14 +78,3 @@ export function stringToColor(str) {
}
return color;
}
export function orderByWebsiteMap(websites, orderMap) {
if (!websites) return [];
let ordered = [...websites];
for (let website of websites) {
ordered[orderMap[website.website_uuid]] = website;
}
return ordered;
}