forked from noxious/client
Map bug fix
This commit is contained in:
parent
d010159989
commit
49dcd92a9e
@ -7,7 +7,8 @@ export function uuidv4() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function unduplicateArray(array: any[]) {
|
export function unduplicateArray(array: any[]) {
|
||||||
return [...new Set(array.flat())]
|
const arrayToProcess = typeof array.flat === 'function' ? array.flat() : array;
|
||||||
|
return [...new Set(arrayToProcess)]
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function downloadCache<T extends { id: string; updatedAt: Date }>(endpoint: string, storage: BaseStorage<T>) {
|
export async function downloadCache<T extends { id: string; updatedAt: Date }>(endpoint: string, storage: BaseStorage<T>) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user