From 60b34230c3f026ea8b031d9de5418994ee1c2829 Mon Sep 17 00:00:00 2001 From: tom Date: Wed, 13 Mar 2024 20:22:58 +0400 Subject: [PATCH] remove 404 for blob page if blob txs view is hidden --- nextjs/getServerSideProps.ts | 10 ---------- pages/blobs/[hash].tsx | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/nextjs/getServerSideProps.ts b/nextjs/getServerSideProps.ts index eb74246176..413b19bf29 100644 --- a/nextjs/getServerSideProps.ts +++ b/nextjs/getServerSideProps.ts @@ -201,13 +201,3 @@ export const gasTracker: GetServerSideProps = async(context) => { return base(context); }; - -export const blobs: GetServerSideProps = async(context) => { - if (config.UI.views.tx.hiddenViews?.blob_txs) { - return { - notFound: true, - }; - } - - return base(context); -}; diff --git a/pages/blobs/[hash].tsx b/pages/blobs/[hash].tsx index dd7005465a..f746e4a82c 100644 --- a/pages/blobs/[hash].tsx +++ b/pages/blobs/[hash].tsx @@ -17,4 +17,4 @@ const Page: NextPage = (props: Props) => { export default Page; -export { blobs as getServerSideProps } from 'nextjs/getServerSideProps'; +export { base as getServerSideProps } from 'nextjs/getServerSideProps';