From 11b9f1978ab78083691f5cf255effb8194329cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Fri, 16 Feb 2018 17:22:49 +0000 Subject: [PATCH] fix(my-joy-beta): fix latest image selection --- packages/my-joy-beta/src/containers/create-instance/image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/my-joy-beta/src/containers/create-instance/image.js b/packages/my-joy-beta/src/containers/create-instance/image.js index a5f5af98..498b3627 100644 --- a/packages/my-joy-beta/src/containers/create-instance/image.js +++ b/packages/my-joy-beta/src/containers/create-instance/image.js @@ -123,7 +123,7 @@ export default compose( }, handleEdit: () => history.push(`/instances/~create/image`), handleSelectLatest: ({ versions }) => { - const id = versions[versions.length - 1].id; + const id = versions[0].id; return dispatch(change('create-instance-image', 'image', id)); } })