fix(dashboard): correct import path for productApi in Dashboard.tsx
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user