perf: [production-orders] stats API 이중 호출 제거
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
* - 서버사이드 페이지네이션
|
||||
*/
|
||||
|
||||
import { useState, useEffect, useCallback } from "react";
|
||||
import { useState, useCallback } from "react";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Card, CardContent } from "@/components/ui/card";
|
||||
@@ -181,15 +181,6 @@ export default function ProductionOrdersListPage() {
|
||||
completed: 0,
|
||||
});
|
||||
|
||||
// 통계 로드
|
||||
useEffect(() => {
|
||||
getProductionOrderStats().then((result) => {
|
||||
if (result.success && result.data) {
|
||||
setStats(result.data);
|
||||
}
|
||||
});
|
||||
}, []);
|
||||
|
||||
const handleBack = () => {
|
||||
router.push("/sales/order-management-sales");
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user