fix(my-joy-beta): omit open/expanded from metadata/tags

This commit is contained in:
Sérgio Ramos 2018-01-24 11:55:04 +00:00
parent 0681fb05fe
commit f539c1eaca

View File

@ -222,8 +222,8 @@ export default compose(
}); });
const _name = name.toLowerCase(); const _name = name.toLowerCase();
const _metadata = metadata.map(a => omit(a, 'expanded')); const _metadata = metadata.map(a => omit(a, 'open'));
const _tags = uniqBy(tags, 'name'); const _tags = uniqBy(tags, 'name').map(a => omit(a, 'expanded'));
const _networks = Object.keys(networks).filter( const _networks = Object.keys(networks).filter(
network => networks[network] network => networks[network]
); );
@ -238,11 +238,11 @@ export default compose(
name: _name, name: _name,
package: pkg, package: pkg,
image, image,
affinity: _affinity, affinity: _affinity.length ? affinity : undefined,
metadata: _metadata, metadata: _metadata,
tags: _tags, tags: _tags,
firewall_enabled, firewall_enabled,
networks: _networks networks: _networks.length ? networks : undefined
} }
}) })
); );