Fixed: None Metadata Profile option to bulk editor

This commit is contained in:
Bogdan 2024-01-13 23:15:15 +02:00
parent e5e69f06c0
commit 171c083af6
3 changed files with 2 additions and 1 deletions

View File

@ -215,6 +215,7 @@ function EditArtistModalContent(props: EditArtistModalContentProps) {
value={metadataProfileId}
includeNoChange={true}
includeNoChangeDisabled={false}
includeNone={true}
onChange={onInputChange}
/>
</FormGroup>

View File

@ -289,6 +289,7 @@ FormInputGroup.propTypes = {
autoFocus: PropTypes.bool,
includeNoChange: PropTypes.bool,
includeNoChangeDisabled: PropTypes.bool,
includeNone: PropTypes.bool,
selectedValueOptions: PropTypes.object,
pending: PropTypes.bool,
errors: PropTypes.arrayOf(PropTypes.object),

View File

@ -17,7 +17,6 @@ function createMapStateToProps() {
(state, { includeMixed }) => includeMixed,
(state, { includeNone }) => includeNone,
(metadataProfiles, includeNoChange, includeNoChangeDisabled = true, includeMixed, includeNone) => {
const profiles = metadataProfiles.items.filter((item) => item.name !== metadataProfileNames.NONE);
const noneProfile = metadataProfiles.items.find((item) => item.name === metadataProfileNames.NONE);