diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-02 09:35:16 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-02 09:35:16 +0700 |
| commit | 40ae7e966913e085abb6644e5be56ee6bd6855fc (patch) | |
| tree | 9abd22773a17d1998e28e0ca0dff1ef128f0b627 /src/pages | |
| parent | 2376bb4ab8f791ce6b99e70478f792b525d4d5fe (diff) | |
| parent | 12c7841770052aefceda899db52b3e6b6d0b5e92 (diff) | |
<iman> Merge branch 'release' into Feature/all-promotion
Diffstat (limited to 'src/pages')
| -rw-r--r-- | src/pages/shop/brands/[slug].jsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pages/shop/brands/[slug].jsx b/src/pages/shop/brands/[slug].jsx index c3a7299f..e786ef78 100644 --- a/src/pages/shop/brands/[slug].jsx +++ b/src/pages/shop/brands/[slug].jsx @@ -5,6 +5,7 @@ import _ from 'lodash' import Seo from '@/core/components/Seo' import Breadcrumb from '@/lib/brand/components/Breadcrumb' import useBrand from '@/lib/brand/hooks/useBrand' +import PageNotFound from '@/pages/404'; const BasicLayout = dynamic(() => import('@/core/components/layouts/BasicLayout')) const ProductSearch = dynamic(() => import('@/lib/product/components/ProductSearch')) @@ -17,10 +18,13 @@ export default function BrandDetail() { const brandName = getNameFromSlug(slug) const id = getIdFromSlug(slug) const {brand} = useBrand({id}) + if (!brand || !brand.data || _.isEmpty(brand.data)) { + return <PageNotFound />; + } return ( <BasicLayout> <Seo - title={`Distributor ${brandName} Indonesia Harga Official Indoteknik.com`} + title={`Jual Produk Resmi ${brandName} Indonesia | Indoteknik.com`} description='B2B Marketplace MRO & Industri dengan Layanan Pembayaran Tempo, Faktur Pajak, Online Quotation, Garansi Resmi & Harga Kompetitif' additionalMetaTags={[ { |
