forked from Gitlink/forgeplus-react
fix
This commit is contained in:
parent
b72889fa0e
commit
9f29bc9baf
|
|
@ -288,9 +288,9 @@ class MilepostDetail extends Component {
|
|||
<span className="color-grey-9 ml3 mr3">暂无描述</span>
|
||||
)}
|
||||
</div>
|
||||
{data && data.attachments && data.attachments.length > 0 ? (
|
||||
{data && data.attachmets && data.attachmets.length > 0 ? (
|
||||
<Attachments
|
||||
attachments={data.attachments}
|
||||
attachments={data.attachmets}
|
||||
showNotification={this.props.showNotification}
|
||||
/>
|
||||
) : (
|
||||
|
|
|
|||
|
|
@ -59,13 +59,13 @@ class UpdateMilepost extends Component {
|
|||
this.setState({
|
||||
data: result.data,
|
||||
selectedValue: result.data.effective_date && moment(result.data.effective_date),
|
||||
get_attachments: result.data.attachments,
|
||||
get_attachments: result.data.attachmets,
|
||||
fileList: undefined,
|
||||
})
|
||||
this.props.form.setFieldsValue({
|
||||
name: result.data.name,
|
||||
description: result.data.description,
|
||||
get_attachments: result.data.attachments,
|
||||
get_attachments: result.data.attachmets,
|
||||
fileList: undefined,
|
||||
});
|
||||
|
||||
|
|
@ -80,7 +80,8 @@ class UpdateMilepost extends Component {
|
|||
this.props.form.validateFieldsAndScroll((err, values) => {
|
||||
if (!err) {
|
||||
const { projectsId , owner } = this.props.match.params;
|
||||
const { meilid,fileList } = this.props.match.params;
|
||||
const { meilid } = this.props.match.params;
|
||||
const { fileList } = this.state;
|
||||
const url = `/${owner}/${projectsId}/milestones/${meilid}.json`;
|
||||
|
||||
let time = this.state.selectedValue && this.state.selectedValue.format("YYYY-MM-DD");
|
||||
|
|
|
|||
Loading…
Reference in New Issue