Skip to content

Commit

Permalink
Fixed icons per row
Browse files Browse the repository at this point in the history
  • Loading branch information
rbatistadev committed Sep 4, 2024
1 parent 3285e50 commit f65db76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@irontec/ivoz-ui",
"version": "1.4.5",
"version": "1.4.6",
"description": "UI library used in ivozprovider",
"license": "GPL-3.0",
"main": "index.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import useCurrentPathMatch from '../../../../hooks/useCurrentPathMatch';
import {
ActionItem,
RouteMapItem,
isActionItem,
isEntityItem,
Expand Down Expand Up @@ -33,11 +34,12 @@ const ChildEntityLinks = (props: ChildEntityLinksProps): JSX.Element => {
firstActionButtonNum = 1;
}

const childEntitiesCopy = [...childEntities];
const visibleChildEntitiesSlice = childEntitiesCopy.length <= 2 ? 3 : 2;
const childEntitiesCopy = childEntities.filter((child) => {
return !(child as ActionItem).global;
});
const visibleChildEntities = childEntitiesCopy.splice(
0,
visibleChildEntitiesSlice - firstActionButtonNum
2 - firstActionButtonNum
);
const isEditable = row.editable ?? true;
return (
Expand Down

0 comments on commit f65db76

Please sign in to comment.