diff --git a/geonode_mapstore_client/client/js/components/CardGrid/CardGrid.jsx b/geonode_mapstore_client/client/js/components/CardGrid/CardGrid.jsx index f4e771e410..9394f36c80 100644 --- a/geonode_mapstore_client/client/js/components/CardGrid/CardGrid.jsx +++ b/geonode_mapstore_client/client/js/components/CardGrid/CardGrid.jsx @@ -84,9 +84,9 @@ const Cards = withResizeDetector(({ style={cardLayoutStyle === 'list' ? {} : containerStyle} > {resources.map((resource, idx) => { - - const allowedOptions = options - .filter((opt) => hasPermissionsTo(resource?.perms, opt?.perms, 'resource')); + // enable allowedOptions (menu cards) only for list layout + const allowedOptions = (cardLayoutStyle === 'list') ? options + .filter((opt) => hasPermissionsTo(resource?.perms, opt?.perms, 'resource')) : []; return (