-
+ >
);
}
diff --git a/components/breadcrumb/index.tsx b/components/breadcrumb/index.tsx
index 96440a6a2..dd44e842e 100644
--- a/components/breadcrumb/index.tsx
+++ b/components/breadcrumb/index.tsx
@@ -17,12 +17,11 @@ type BreadcrumbProps = {
const findParentCollection = (menu: Menu[], collection: string): Menu | null => {
let parentCollection: Menu | null = null;
-
for (const item of menu) {
if (item.items.length) {
const hasParent = item.items.some((subItem) => subItem.path.includes(collection));
if (hasParent) {
- parentCollection = item;
+ return item;
} else {
parentCollection = findParentCollection(item.items, collection);
}
diff --git a/components/grid/three-items.tsx b/components/grid/three-items.tsx
index 8ed44b46c..2fef1fa81 100644
--- a/components/grid/three-items.tsx
+++ b/components/grid/three-items.tsx
@@ -16,7 +16,7 @@ function ThreeItemGridItem({
-
+
) {
return (
-
- {props.src ? (
- // eslint-disable-next-line jsx-a11y/alt-text -- `alt` is inherited from `props`, which is being enforced with TypeScript
-
- ) : null}
+
+
+ {props.src ? (
+ // eslint-disable-next-line jsx-a11y/alt-text -- `alt` is inherited from `props`, which is being enforced with TypeScript
+
+ ) : (
+