fix(dashboard): correct import path for productApi in Dashboard.tsx

This commit is contained in:
Inamul-hasan-tec
2026-08-12 16:07:39 +05:30
parent 00b5b93253
commit 1ceed926fc
+2 -2
View File
@@ -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);