fix update selected signal conditions

fixes #121
main
Joost Wooning 2022-03-22 11:18:42 +01:00
parent 9ca2e4ee2f
commit 63e410031f
1 changed files with 6 additions and 5 deletions

View File

@ -104,11 +104,12 @@ export default class AddSignals extends Component {
shouldComponentUpdate(nextProps, nextState) {
return (
nextProps.message.hexData !== this.props.message.hexData
|| nextProps.messageIndex !== this.props.messageIndex
|| JSON.stringify(nextProps.plottedSignalUids)
!== JSON.stringify(this.props.plottedSignalUids)
|| JSON.stringify(this.state) !== JSON.stringify(nextState)
nextProps.selectedMessageKey !== this.props.selectedMessageKey ||
nextProps.message.address !== this.props.message.address ||
nextProps.message.hexData !== this.props.message.hexData ||
nextProps.messageIndex !== this.props.messageIndex ||
JSON.stringify(nextProps.plottedSignalUids) !== JSON.stringify(this.props.plottedSignalUids) ||
JSON.stringify(this.state) !== JSON.stringify(nextState)
);
}