Skip to content

Commit

Permalink
catch tags in app aggregation data flow (#1924)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpkane authored Jul 5, 2022
1 parent 56a7aa5 commit 2d9c88a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/packages/app/src/recoil/aggregations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,12 @@ export const count = selectorFamily<
if (!result) {
const split = path.split(".");

if (split[0] === "tags") {
return get(counts({ extended, path: "tags", modal }))[
split.slice(1).join(".")
];
}

if (split.length < 2) {
throw new Error(`invalid path ${path}`);
}
Expand Down

0 comments on commit 2d9c88a

Please sign in to comment.