fix(my-joy-beta): fix latest image selection
This commit is contained in:
parent
a5ea102ab3
commit
11b9f1978a
@ -123,7 +123,7 @@ export default compose(
|
|||||||
},
|
},
|
||||||
handleEdit: () => history.push(`/instances/~create/image`),
|
handleEdit: () => history.push(`/instances/~create/image`),
|
||||||
handleSelectLatest: ({ versions }) => {
|
handleSelectLatest: ({ versions }) => {
|
||||||
const id = versions[versions.length - 1].id;
|
const id = versions[0].id;
|
||||||
return dispatch(change('create-instance-image', 'image', id));
|
return dispatch(change('create-instance-image', 'image', id));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user