webpack/scenes/ContentViews/components/ContentViewSelect/ContentViewSelectOption.js in katello-4.8.4 vs webpack/scenes/ContentViews/components/ContentViewSelect/ContentViewSelectOption.js in katello-4.9.0.rc1
- old
+ new
@@ -42,14 +42,14 @@
};
export const relevantVersionFromCv = (cv, env) =>
relevantVersionObjFromCv(cv, env)?.version; // returns the version text e.g. "1.0"
-const ContentViewSelectOption = ({ cv, env }) => (
+const ContentViewSelectOption = ({ cv, env, value }) => (
<SelectOption
key={cv.id}
- value={cv.name}
+ value={value}
>
<Flex
direction={{ default: 'row', sm: 'row' }}
flexWrap={{ default: 'nowrap' }}
alignItems={{ default: 'alignItemsCenter', sm: 'alignItemsCenter' }}
@@ -80,8 +80,9 @@
composite: PropTypes.bool.isRequired,
}).isRequired,
env: PropTypes.shape({
id: PropTypes.number.isRequired,
}).isRequired,
+ value: PropTypes.string.isRequired,
};
export default ContentViewSelectOption;