fix(my-joy-beta): fix latest image selection

This commit is contained in:
Sérgio Ramos 2018-02-16 17:22:49 +00:00 committed by Sérgio Ramos
parent a5ea102ab3
commit 11b9f1978a

View File

@ -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));
} }
}) })