webpack/scenes/ContentViews/components/EnvironmentLabels.js in katello-4.4.0.rc1 vs webpack/scenes/ContentViews/components/EnvironmentLabels.js in katello-4.4.0.rc2
- old
+ new
@@ -3,27 +3,27 @@
const EnvironmentLabels = (environments) => {
const { environments: singleEnvironment } = environments || {};
const { name } = singleEnvironment || {};
switch (environments) {
- case Array:
- return environments.map(env => (
- <React.Fragment key={env.id} style={{ marginBottom: '5px' }}>
- <Label
- color="purple"
- isTruncated
- >{env.name}
- </Label>
- </React.Fragment>
- ));
- default:
- return (
- <React.Fragment>
- <Label color="purple" isTruncated>
- {name}
- </Label>
- </React.Fragment>
- );
+ case Array:
+ return environments.map(env => (
+ <React.Fragment key={env.id} style={{ marginBottom: '5px' }}>
+ <Label
+ color="purple"
+ isTruncated
+ >{env.name}
+ </Label>
+ </React.Fragment>
+ ));
+ default:
+ return (
+ <React.Fragment>
+ <Label color="purple" isTruncated>
+ {name}
+ </Label>
+ </React.Fragment>
+ );
}
};
export default EnvironmentLabels;