Skip to content

Commit

Permalink
fix: Types
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne committed Nov 9, 2022
1 parent 7a18994 commit 42d5fe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/configurator/components/use-hierarchy-parents.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe("grouping hierarchy by parents", () => {
const iri =
"https://ld.admin.ch/cube/dimension/aussenhandel_warenkoerbe/1_listZT";
const ztGroups = groups.filter(
([parents, values]) =>
([parents]) =>
parents.length > 0 && parents[parents.length - 1].value === iri
)!;

Expand Down
2 changes: 1 addition & 1 deletion app/configurator/components/use-hierarchy-parents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const hierarchyToGraphviz = (
hierarchy: DimensionHierarchyQueryHierarchy
) => {
const lines = [] as string[];
dfs(hierarchy, (node, { depth, parents }) => {
dfs(hierarchy, (node, { parents }) => {
lines.push(`"${node.value}"[label="${node.label.replace(/"/g, "")}"]`);
if (parents.length > 0) {
const parent = parents[parents.length - 1];
Expand Down

0 comments on commit 42d5fe7

Please sign in to comment.