File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,6 @@ import { getCategoryData } from '@/actions/categories'
4
4
import { getLatestUsers } from '@/actions/auth'
5
5
6
6
const Dashboard = async ( ) => {
7
- // const monthlyOrders = await getMonthlyOrders()
8
- // const categoryData = await getCategoryData()
9
- // const latestUsers = await getLatestUsers()
10
7
const [ monthlyOrders , categoryData , latestUsers ] = await Promise . all ( [
11
8
getMonthlyOrders ( ) ,
12
9
getCategoryData ( ) ,
Original file line number Diff line number Diff line change @@ -3,8 +3,12 @@ import { getProductsWithCategories } from '@/actions/products'
3
3
import { ProductPageComponent } from '@/app/admin/products/page-component'
4
4
5
5
export default async function Products ( ) {
6
- const categories = await getCategoriesWithProducts ( )
7
- const productsWithCategories = await getProductsWithCategories ( )
6
+ // const categories = await getCategoriesWithProducts()
7
+ // const productsWithCategories = await getProductsWithCategories()
8
+ const [ categories , productsWithCategories ] = await Promise . all ( [
9
+ getCategoriesWithProducts ( ) ,
10
+ getProductsWithCategories ( ) ,
11
+ ] )
8
12
9
13
return (
10
14
< ProductPageComponent
You can’t perform that action at this time.
0 commit comments