mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-22 05:50:56 +00:00
Fix Interactive Import Allowing Import without Deselect/Select of Row
This commit is contained in:
parent
0d8bec272e
commit
dd56abffba
1 changed files with 9 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import formatBytes from 'Utilities/Number/formatBytes';
|
import formatBytes from 'Utilities/Number/formatBytes';
|
||||||
|
import hasDifferentItems from 'Utilities/Object/hasDifferentItems';
|
||||||
import { icons, kinds, tooltipPositions } from 'Helpers/Props';
|
import { icons, kinds, tooltipPositions } from 'Helpers/Props';
|
||||||
import Icon from 'Components/Icon';
|
import Icon from 'Components/Icon';
|
||||||
import TableRow from 'Components/Table/TableRow';
|
import TableRow from 'Components/Table/TableRow';
|
||||||
|
@ -68,7 +69,14 @@ class InteractiveImportRow extends Component {
|
||||||
onValidRowChange
|
onValidRowChange
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
if (prevProps.isSelected === isSelected) {
|
if (
|
||||||
|
prevProps.artist === artist &&
|
||||||
|
prevProps.album === album &&
|
||||||
|
!hasDifferentItems(prevProps.tracks, tracks) &&
|
||||||
|
prevProps.quality === quality &&
|
||||||
|
prevProps.language === language &&
|
||||||
|
prevProps.isSelected === isSelected
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue