From 1ceed926fcb5edb4001abfc7ef55eec0239bfba2 Mon Sep 17 00:00:00 2001 From: Inamul-hasan-tec Date: Wed, 12 Aug 2026 16:07:39 +0530 Subject: [PATCH] fix(dashboard): correct import path for productApi in Dashboard.tsx --- src/features/dashboard/pages/Dashboard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/dashboard/pages/Dashboard.tsx b/src/features/dashboard/pages/Dashboard.tsx index 764b6ec..7afefe6 100644 --- a/src/features/dashboard/pages/Dashboard.tsx +++ b/src/features/dashboard/pages/Dashboard.tsx @@ -63,7 +63,7 @@ const recentActivity = [ // ── Dashboard Component ─────────────────────────────────────────────────────── import { useEffect, useState } from "react"; import { useSelector } from "react-redux"; -import { productsApi } from "../../products/api/products.api"; +import { productApi } from "../../product/api/product.api"; import { channelsApi } from "../../channels/api/channels.api"; export default function Dashboard() { @@ -76,7 +76,7 @@ export default function Dashboard() { async function loadStats() { try { const [products, channels] = await Promise.all([ - productsApi.getAll().catch(() => []), + productApi.getAll().catch(() => []), channelsApi.getAll().catch(() => []) ]); setProductCount(products.length || 0);