@@ -52,7 +52,7 @@ import { LoadingModal } from "@/component/common/Modal/LoadingModal";
5252import { encryptId } from "@/utils/space/cryptoKey" ;
5353import useDesktopBasicModal from "@/hooks/useDesktopBasicModal" ;
5454import { useAtom , useAtomValue } from "jotai" ;
55- import { CREATE_RETROSPECT_INIT_ATOM , DEFAULT_QUESTIONS } from "@/store/retrospect/retrospectCreate" ;
55+ import { CREATE_RETROSPECT_INIT_ATOM , DEFAULT_QUESTIONS , retrospectCreateAtom } from "@/store/retrospect/retrospectCreate" ;
5656import { CREATE_SPACE_INIT_ATOM } from "@/store/space/spaceAtom" ;
5757import { useRetrospectCreateReset } from "@/hooks/store/useRetrospectCreateReset" ;
5858import { useSpaceCreateReset } from "@/hooks/store/useSpaceCreateReset" ;
@@ -1199,6 +1199,7 @@ function CreateRetrospectQuestionFunnel() {
11991199function CreateRetrospectDeadlineFunnel ( ) {
12001200 const { questions, selectedRecommendTemplate, setSpaceId, deadLine, setDeadLine, title, description, selectedCategory, setFlow } =
12011201 useContext ( PhaseContext ) ;
1202+ const { isNewForm, hasChangedOriginal } = useAtomValue ( retrospectCreateAtom ) ;
12021203 const { selectedValue, isChecked, onChange } = useRadioButton ( ) ;
12031204 const { toast } = useToast ( ) ;
12041205 const { mutateAsync : postSpace } = useApiPostSpace ( ) ;
@@ -1231,8 +1232,8 @@ function CreateRetrospectDeadlineFunnel() {
12311232 introduction : "" ,
12321233 questions : [ ...DEFAULT_QUESTIONS , ...questions ] ,
12331234 deadline : deadLine ,
1234- isNewForm : false ,
1235- hasChangedOriginal : false ,
1235+ isNewForm,
1236+ hasChangedOriginal,
12361237 curFormId : selectedRecommendTemplate ! . id ,
12371238 } as RetrospectCreateReq ;
12381239 const res = await postRetrospect (
0 commit comments