Skip to content

Commit fb07644

Browse files
committed
Fix linting error
1 parent 55f9ac4 commit fb07644

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/shared/utils/transformations.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@ import { GroupByList } from 'shared/constants';
22

33
export const getDimensions = (dimensions: any) => {
44
const { ids, names } = dimensions;
5-
if (!ids) return [];
5+
if (!ids) {
6+
return [];
7+
}
8+
69
return ids.map((id: string, index: number) => ({ value: id, label: names[index] || id }));
710
};
811

912
export const defaultFilter = { 'No filter': [] };
1013

1114
export const getFilters = (labels: any[]) => {
12-
if (!labels?.length) return defaultFilter;
15+
if (!labels?.length) {
16+
return defaultFilter;
17+
}
18+
1319
return {
1420
...defaultFilter,
1521
...labels.reduce((acc: any, label: any) => {

0 commit comments

Comments
 (0)