diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-08-23 14:20:08 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-08-23 14:20:08 +0700 |
| commit | e17210013af6aa12e1641cd9055d892e16409e1e (patch) | |
| tree | 3cc3adb21f804c75379970b36835cb5ae985a744 /src/pages/shop | |
| parent | 67731281227f961c9b56f9f310951a8e5c82ab39 (diff) | |
| parent | 0cf2e5aa835155904a1242e74ff7935760513c48 (diff) | |
Merge branch 'release' of https://bitbucket.org/altafixco/next-indoteknik into release
Diffstat (limited to 'src/pages/shop')
| -rw-r--r-- | src/pages/shop/brands/[slug].jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/shop/brands/[slug].jsx b/src/pages/shop/brands/[slug].jsx index e786ef78..88e9b302 100644 --- a/src/pages/shop/brands/[slug].jsx +++ b/src/pages/shop/brands/[slug].jsx @@ -18,7 +18,7 @@ export default function BrandDetail() { const brandName = getNameFromSlug(slug) const id = getIdFromSlug(slug) const {brand} = useBrand({id}) - if (!brand || !brand.data || _.isEmpty(brand.data)) { + if ( !brand.isLoading && _.isEmpty(brand.data)) { return <PageNotFound />; } return ( |
