eschutho commented on a change in pull request #18629:
URL: https://github.com/apache/superset/pull/18629#discussion_r804257686



##########
File path: superset-frontend/src/views/components/Menu.tsx
##########
@@ -185,6 +185,11 @@ export function Menu({
   const screens = useBreakpoint();
   const uiConig = useUiConfig();
 
+  const getUploadMenulinks: MenuObjectProps[] =
+    menu &&
+    (menu?.filter(item => item.name === 'Upload Data')[0]

Review comment:
       can you use menu?.find() here? That should return the first item it 
finds. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to