Skip to content

Commit

Permalink
remove 404 for blob page if blob txs view is hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Mar 13, 2024
1 parent 760c69e commit 60b3423
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions nextjs/getServerSideProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,3 @@ export const gasTracker: GetServerSideProps<Props> = async(context) => {

return base(context);
};

export const blobs: GetServerSideProps<Props> = async(context) => {
if (config.UI.views.tx.hiddenViews?.blob_txs) {
return {
notFound: true,
};
}

return base(context);
};
2 changes: 1 addition & 1 deletion pages/blobs/[hash].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ const Page: NextPage<Props> = (props: Props) => {

export default Page;

export { blobs as getServerSideProps } from 'nextjs/getServerSideProps';
export { base as getServerSideProps } from 'nextjs/getServerSideProps';

0 comments on commit 60b3423

Please sign in to comment.