improve event list a bit

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-08-12 22:34:44 +02:00
parent c34c2cb93b
commit 64d3a59722
2 changed files with 18 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
import { uniq } from 'ramda';
import { escape } from 'sqlstring';
import { toObject } from '@openpanel/common';
@@ -66,7 +67,7 @@ interface GetProfileListOptions {
}
export async function getProfiles(ids: string[]) {
const filteredIds = ids.filter((id) => id !== '');
const filteredIds = uniq(ids.filter((id) => id !== ''));
if (filteredIds.length === 0) {
return [];