chore(plugin-org): restore original default behaviour of OwnershipCard

Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com>
This commit is contained in:
Benjamin Janssens
2025-08-14 13:40:45 +02:00
parent 4ee19ed8dc
commit 737d4a73f8
3 changed files with 5 additions and 6 deletions
@@ -124,7 +124,7 @@ export const ComponentsGrid = ({
relationsType,
relationAggregation,
entityFilterKind,
entityLimit,
entityLimit = 6,
}: {
className?: string;
entity: Entity;
@@ -100,14 +100,13 @@ export const OwnershipCard = (props: {
variant,
entityFilterKind,
hideRelationsToggle,
entityLimit,
scrollHeight: propScrollHeight = '292px',
entityLimit = 6,
scrollHeight: propScrollHeight,
} = props;
const relationAggregation = props.relationAggregation ?? props.relationsType;
const relationsToggle =
hideRelationsToggle === undefined ? false : hideRelationsToggle;
const scrollHeight =
entityLimit || variant === 'fullHeight' ? 'none' : propScrollHeight;
const scrollHeight = variant !== 'fullHeight' ? propScrollHeight : undefined;
const classes = useStyles();
const { entity } = useEntity();
const { t } = useTranslationRef(orgTranslationRef);
@@ -184,7 +184,7 @@ export function useGetEntities(
entity: Entity,
relationAggregation: EntityRelationAggregation,
entityFilterKind?: string[],
entityLimit?: number,
entityLimit = 6,
): {
componentsWithCounters:
| {