summaryrefslogtreecommitdiff
path: root/src/core/components/elements/Navbar/TopBanner.jsx
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2023-09-15 01:41:26 +0000
committerIT Fixcomart <it@fixcomart.co.id>2023-09-15 01:41:26 +0000
commitedb2eda7b2cc4115e3d9f90a4ff9721454b1c8a9 (patch)
treec6c045bb69e7651e048542491aa57d8d6be5f2b5 /src/core/components/elements/Navbar/TopBanner.jsx
parent4adc8375819bc84e71cd956f262160f4d0079431 (diff)
parentcf8daf7dd3a66084dfafdde1d9bf9d0d94fe42a7 (diff)
Merged in CR/migrasi_product_detail_to_solr (pull request #65)
CR/migrasi product detail to solr
Diffstat (limited to 'src/core/components/elements/Navbar/TopBanner.jsx')
-rw-r--r--src/core/components/elements/Navbar/TopBanner.jsx2
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 dca2e930..a757c260 100644
--- a/src/core/components/elements/Navbar/TopBanner.jsx
+++ b/src/core/components/elements/Navbar/TopBanner.jsx
@@ -6,7 +6,7 @@ import { TopBannerSkeleton } from '../Skeleton/TopBannerSkeleton'
const TopBanner = () => {
const fetchTopBanner = async () => await odooApi('GET', '/api/v1/banner?type=top-banner')
- const topBanner = useQuery('topBanner', fetchTopBanner)
+ const topBanner = useQuery('topBanner', fetchTopBanner, { refetchOnWindowFocus: false })
if (topBanner.isLoading) {
return <TopBannerSkeleton />