Skip to content

Commit

Permalink
fix: hide secondary header in create insights page (#1925)
Browse files Browse the repository at this point in the history
  • Loading branch information
OgDev-01 authored Oct 17, 2023
1 parent b651862 commit a5245f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/hub.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const HubLayout = ({ children }: { children: React.ReactNode }) => {
const router = useRouter();

const validatePath = (path: string) => {
const PATHREGEX = /^\/hub\/(insights|lists)(\/(new|[\d]+\/edit))?$/;
const PATHREGEX = /^\/hub\/(insights|lists)?$/;

return PATHREGEX.test(path);
};
Expand Down

0 comments on commit a5245f7

Please sign in to comment.