Skip to content

Commit

Permalink
fix e2e test on search
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalabbad committed Oct 14, 2024
1 parent 2ed6974 commit 3b20326
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export default function ObjectItems({
const result = data && schema?.kind ? (data[kindFilter?.value || schema?.kind] ?? {}) : {};

const { count = "...", edges, permissions } = result;
console.log("permissions: ", permissions);

useTitle(`${schema.label || schema.name} list`);

Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/state/atoms/schema.atom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const menuFlatAtom = atom((get) => {
const menuItems: MenuItem[] = [];

const flattenMenuItems = (menuItem: MenuItem) => {
if (menuItem.path !== "") menuItems.push(menuItem);
if (menuItem.path !== "" && menuItem.children?.length === 0) menuItems.push(menuItem);

if (menuItem.children && menuItem.children.length > 0) {
menuItem.children.forEach(flattenMenuItems);
Expand Down

0 comments on commit 3b20326

Please sign in to comment.