[ARVADOS-WORKBENCH2] updated: 2.3.0-207-ga7031136

Git user git at public.arvados.org
Thu Mar 31 05:52:22 UTC 2022


Summary of changes:
 src/views-components/context-menu/context-menu.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

       via  a7031136f64556a75204141b327f694192235cfd (commit)
      from  e4a198bd0cc9ed174cb68345623ce9fbd8923951 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit a7031136f64556a75204141b327f694192235cfd
Author: Stephen Smith <stephen at curii.com>
Date:   Thu Mar 31 01:52:04 2022 -0400

    18559: Fix error in admin check
    
    Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>

diff --git a/src/views-components/context-menu/context-menu.tsx b/src/views-components/context-menu/context-menu.tsx
index 09f6e19c..0409ec36 100644
--- a/src/views-components/context-menu/context-menu.tsx
+++ b/src/views-components/context-menu/context-menu.tsx
@@ -14,7 +14,7 @@ import { sortByProperty } from "common/array-utils";
 type DataProps = Pick<ContextMenuProps, "anchorEl" | "items" | "open"> & { resource?: ContextMenuResource };
 const mapStateToProps = (state: RootState): DataProps => {
     const { open, position, resource } = state.contextMenu;
-    const isAdmin = state.auth.user!.isAdmin;
+    const isAdmin = state.auth.user?.isAdmin;
     return {
         anchorEl: resource ? createAnchorAt(position) : undefined,
         items: getMenuActionSet(resource, isAdmin),

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list