diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-09 14:45:09 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-09 14:45:09 +0700 |
| commit | dec5fa876bffd4010febc7a16fa9ed20633cb42c (patch) | |
| tree | 121b487284b11aa309757e6f9f0a3d1db0b5d2e8 /src/core | |
| parent | 7e762fee7c9125ef2ce7e1cc0942ce8d1c1cb290 (diff) | |
<iman> add handling to avoid error
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/components/elements/Navbar/TopBanner.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/components/elements/Navbar/TopBanner.jsx b/src/core/components/elements/Navbar/TopBanner.jsx index 7bc8fb6a..6cce6b03 100644 --- a/src/core/components/elements/Navbar/TopBanner.jsx +++ b/src/core/components/elements/Navbar/TopBanner.jsx @@ -6,7 +6,7 @@ import SmoothRender from '~/components/ui/smooth-render'; import Link from '../Link/Link'; import { useEffect } from 'react'; -const TopBanner = ({ onLoad }) => { +const TopBanner = ({ onLoad = () => {} }) => { const topBanner = useQuery({ queryKey: 'topBanner', queryFn: async () => await odooApi('GET', '/api/v1/banner?type=top-banner'), |
