chore(plugin-org): restore original default behaviour of OwnershipCard
Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com>
This commit is contained in:
@@ -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:
|
||||
| {
|
||||
|
||||
Reference in New Issue
Block a user