From c1a6f2fbacdf1347caef73ab472025622b9f0099 Mon Sep 17 00:00:00 2001 From: Timothy Jennison Date: Thu, 5 Jan 2023 18:47:29 +0000 Subject: [PATCH] Fix type coercion of ancestor ids 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. --- ui/src/data/source.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/data/source.tsx b/ui/src/data/source.tsx index 94e0901e4..372979b80 100644 --- a/ui/src/data/source.tsx +++ b/ui/src/data/source.tsx @@ -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)); } }