Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -78,3 +78,14 @@ 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user