From 560e94a232adba5a67f1d585bcaa15ff722f2a16 Mon Sep 17 00:00:00 2001 From: karamvir Date: Sat, 5 Aug 2023 22:14:29 -0700 Subject: [PATCH] update builder card --- frontend/src/resources/builder/index.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/resources/builder/index.tsx b/frontend/src/resources/builder/index.tsx index 770931fc6..aaa02578d 100644 --- a/frontend/src/resources/builder/index.tsx +++ b/frontend/src/resources/builder/index.tsx @@ -7,7 +7,7 @@ import { Link, useParams } from "react-router-dom"; export const BuilderName = ({ id }: { id: string }) => { const builders = useRead("ListBuilders", {}).data; - const builder = builders?.find((b) => b._id?.$oid === id); + const builder = builders?.find((b) => b.id === id); return <>{builder?.name}; }; @@ -27,10 +27,10 @@ export const BuilderPage = () => { export const BuilderCard = ({ id }: { id: string }) => { const builders = useRead("ListBuilders", {}).data; - const builder = builders?.find((b) => b._id?.$oid === id); + const builder = builders?.find((b) => b.id === id); if (!builder) return null; return ( - + {
- AWS + {builder.provider}
- C5x Large + {builder.instance_type ?? "n/a"}