연계 목록
-
diff --git a/apps/cs/src/pages/link/ui/modify-page.tsx b/apps/cs/src/pages/link/ui/modify-page.tsx
index c690b8aa7..88a83f47b 100644
--- a/apps/cs/src/pages/link/ui/modify-page.tsx
+++ b/apps/cs/src/pages/link/ui/modify-page.tsx
@@ -7,7 +7,7 @@ import { useForm } from "react-hook-form";
import { zodResolver } from "@hookform/resolvers/zod";
import LinkForm from "./link-form";
import { useAlertStore } from "@/shared/lib/use-alert-store";
-import { useEffect } from "react";
+import { useEffect, useState } from "react";
import { getUserInfo } from "../../../../../../packages/common/components/src/api";
import { AUTH_USER_ID } from "@/shared/config";
import { getCookie } from "@common/components";
@@ -18,6 +18,8 @@ function ModifyLinkPage({ linkSn }: { linkSn: string }) {
const { setMessage: alert } = useAlertStore((state) => state);
const userUniqId = getCookie(AUTH_USER_ID) ?? "";
+ const [initialIsNoExprie, setInitialIsNoExprie] = useState
(true);
+
// 컴포넌트 마운트 시 캐시 초기화
useEffect(() => {
queryClient.removeQueries({
@@ -82,7 +84,8 @@ function ModifyLinkPage({ linkSn }: { linkSn: string }) {
}
form.reset(newData);
-
+
+ setInitialIsNoExprie(newData.link_key_expry_ymd === 'none');
}
};
@@ -101,6 +104,7 @@ function ModifyLinkPage({ linkSn }: { linkSn: string }) {
updateLinkInfo={updateLinkInfo}
deleteLink={deleteLink}
updateLinkResultCode={updateLinkResultCode}
+ initialIsNoExprie={initialIsNoExprie}
/>