From dd56abffbaf987bd5ed7ee725b4d8eb9e6640cb2 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 8 Oct 2017 14:49:42 -0400 Subject: [PATCH] Fix Interactive Import Allowing Import without Deselect/Select of Row --- .../Interactive/InteractiveImportRow.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/src/InteractiveImport/Interactive/InteractiveImportRow.js b/frontend/src/InteractiveImport/Interactive/InteractiveImportRow.js index 2234db00e..7f32850b9 100644 --- a/frontend/src/InteractiveImport/Interactive/InteractiveImportRow.js +++ b/frontend/src/InteractiveImport/Interactive/InteractiveImportRow.js @@ -1,6 +1,7 @@ import PropTypes from 'prop-types'; import React, { Component } from 'react'; import formatBytes from 'Utilities/Number/formatBytes'; +import hasDifferentItems from 'Utilities/Object/hasDifferentItems'; import { icons, kinds, tooltipPositions } from 'Helpers/Props'; import Icon from 'Components/Icon'; import TableRow from 'Components/Table/TableRow'; @@ -68,7 +69,14 @@ class InteractiveImportRow extends Component { onValidRowChange } = 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; }