瀏覽代碼

fix apply public notice bug

master
Anna Ho 1 年之前
父節點
當前提交
92912becab
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. +7
    -2
      src/pages/PublicNotice/ApplyForm/PublicNoticeApplyForm.js

+ 7
- 2
src/pages/PublicNotice/ApplyForm/PublicNoticeApplyForm.js 查看文件

@@ -24,6 +24,8 @@ const PublicNoticeApplyForm = ({ loadedData, selections }) => {
const [isWarningPopUp, setIsWarningPopUp] = React.useState(false);
const [warningText, setWarningText] = React.useState("");
const [attachment, setAttachment] = React.useState({});

const [issueId, setIssueId] = React.useState(loadedData.issueId);
const navigate = useNavigate();

const BackgroundHead = {
@@ -83,7 +85,7 @@ const PublicNoticeApplyForm = ({ loadedData, selections }) => {
countryCode: values.fax_countryCode,
faxNumber: values.faxNumber
},
issueId: values.issueId,
issueId: issueId,
remarks: values.remarks ? values.remarks : "",
},
files: [attachment],
@@ -172,7 +174,10 @@ const PublicNoticeApplyForm = ({ loadedData, selections }) => {
aria-labelledby="demo-radio-buttons-group-label"
id="issueId"
name="issueId"
defaultValue={formik.values.issueId}
defaultValue={issueId}
onChange={(event)=>{
setIssueId(event.target.value);
}}
>
{
selections


Loading…
取消
儲存