summaryrefslogtreecommitdiff
path: root/components/pq/pq-input-tabs.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/pq/pq-input-tabs.tsx')
-rw-r--r--components/pq/pq-input-tabs.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/pq/pq-input-tabs.tsx b/components/pq/pq-input-tabs.tsx
index b84d9167..d72eff92 100644
--- a/components/pq/pq-input-tabs.tsx
+++ b/components/pq/pq-input-tabs.tsx
@@ -76,6 +76,7 @@ import {
ProjectPQ,
} from "@/lib/pq/service"
import { PQGroupData } from "@/lib/pq/service"
+import { useRouter } from "next/navigation"
// ----------------------------------------------------------------------
// 1) Define client-side file shapes
@@ -148,7 +149,7 @@ export function PQInputTabs({
const [showConfirmDialog, setShowConfirmDialog] = React.useState(false)
const { toast } = useToast()
-
+ const router = useRouter()
// ----------------------------------------------------------------------
// A) Create initial form values
// Mark items as "saved" if they have existing answer or attachments
@@ -414,7 +415,8 @@ export function PQInputTabs({
description: "Your PQ information has been submitted successfully",
})
// 제출 후 페이지 새로고침 또는 리디렉션 처리
- window.location.reload()
+ router.refresh()
+ // window.location.reload()
} else {
toast({
title: "Submit Error",