From 3e41a5568f2557aa68341550f9fbd09390d982dc Mon Sep 17 00:00:00 2001 From: karamvir Date: Sat, 5 Aug 2023 23:14:39 -0700 Subject: [PATCH] fix omnibar types --- frontend/src/components/header/omnibar.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/header/omnibar.tsx b/frontend/src/components/header/omnibar.tsx index 7376a86c3..1ebb4391a 100644 --- a/frontend/src/components/header/omnibar.tsx +++ b/frontend/src/components/header/omnibar.tsx @@ -99,9 +99,7 @@ export const Omnibar = () => { })} - {builders?.map(({ _id }) => { - const id = _id?.$oid; - if (!id) return null; + {builders?.map(({ id }) => { return ( { })} - {alerters?.map(({ _id }) => { - const id = _id?.$oid; - if (!id) return null; + {alerters?.map(({ id }) => { return (