fix(client): fix issue with react-query cache

This commit is contained in:
Amruth Pillai
2022-03-14 06:33:14 +01:00
parent fbb0285d0d
commit ed75a85827
11 changed files with 350 additions and 300 deletions

View File

@ -43,7 +43,7 @@ type Separator = ', ' | ' / ' | ' | ';
export const parseListItemPath = (item: ListItem, path: string | string[], separator: Separator = ', '): string => {
if (isArray(path)) {
const value = path.map((_path) => get(item, _path));
const value = path.map((_path) => get(item, _path)).filter((x) => x);
return value.join(separator);
} else {