From f539c1eacad470ce7393f0a1a66e513c65fdb50d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Wed, 24 Jan 2018 11:55:04 +0000 Subject: [PATCH] fix(my-joy-beta): omit open/expanded from metadata/tags --- .../my-joy-beta/src/containers/create-instance/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/my-joy-beta/src/containers/create-instance/index.js b/packages/my-joy-beta/src/containers/create-instance/index.js index e4b713c6..24c3d502 100644 --- a/packages/my-joy-beta/src/containers/create-instance/index.js +++ b/packages/my-joy-beta/src/containers/create-instance/index.js @@ -222,8 +222,8 @@ export default compose( }); const _name = name.toLowerCase(); - const _metadata = metadata.map(a => omit(a, 'expanded')); - const _tags = uniqBy(tags, 'name'); + const _metadata = metadata.map(a => omit(a, 'open')); + const _tags = uniqBy(tags, 'name').map(a => omit(a, 'expanded')); const _networks = Object.keys(networks).filter( network => networks[network] ); @@ -238,11 +238,11 @@ export default compose( name: _name, package: pkg, image, - affinity: _affinity, + affinity: _affinity.length ? affinity : undefined, metadata: _metadata, tags: _tags, firewall_enabled, - networks: _networks + networks: _networks.length ? networks : undefined } }) );