Skip to content

Commit

Permalink
Fix type coercion of ancestor ids
Browse files Browse the repository at this point in the history
This was preventing hierarchy expansion from working because the
requests for the ancestor instance children were failing due to the
requested id type being a string instead of an int64.
  • Loading branch information
Timothy Jennison authored and tjennison-work committed Jan 5, 2023
1 parent 8dc6e29 commit c1a6f2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/data/source.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,9 @@ function processEntitiesResponse(
if (path === "") {
ancestors = [];
} else {
ancestors = path.split(".").map((id) => id as typeof data.key);
ancestors = path
.split(".")
.map((id) => (typeof data.key === "number" ? +id : id));
}
}

Expand Down

0 comments on commit c1a6f2f

Please sign in to comment.