summaryrefslogtreecommitdiff
path: root/src/pages/index.jsx
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-07-23 14:47:17 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-07-23 14:47:17 +0700
commitc36d43c9b41eeb6f0c996476eaa8a2d13fbf42d1 (patch)
tree80e5b96da5fd665830780cca6b7b92db78fc01c5 /src/pages/index.jsx
parentca30fe957369a16f6833d6a3bd37df74182b2911 (diff)
<iman> update error code
Diffstat (limited to 'src/pages/index.jsx')
-rw-r--r--src/pages/index.jsx14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/pages/index.jsx b/src/pages/index.jsx
index c720547e..578c4e2d 100644
--- a/src/pages/index.jsx
+++ b/src/pages/index.jsx
@@ -80,8 +80,6 @@ export default function Home({categoryId}) {
bannerRef.current?.querySelector(':first-child')?.clientHeight + 'px';
};
- // const [dataCategories, setDataCategories] = useState([])
-
useEffect(() => {
const loadCategories = async () => {
const getCategories = await odooApi('GET', '/api/v1/category/child?partner_id='+{categoryId})
@@ -94,16 +92,6 @@ export default function Home({categoryId}) {
const [dataCategories, setDataCategories] = useState([])
- useEffect(() => {
- const loadCategories = async () => {
- const getCategories = await odooApi('GET', '/api/v1/category/child?partner_id='+{categoryId})
- if(getCategories){
- setDataCategories(getCategories)
- }
- }
- loadCategories()
- }, [])
-
return (
<BasicLayout>
<Seo
@@ -210,4 +198,4 @@ export default function Home({categoryId}) {
</MobileView>
</BasicLayout>
);
-}
+} \ No newline at end of file