New: Show updated Custom Format Score in history

(cherry picked from commit 6dcfc661a12f4c6f03345235fb5531c866666a6a)

Closes #3291
This commit is contained in:
Mark McDowall 2022-12-12 23:48:48 -08:00 committed by Bogdan
parent 8c9d3d09fa
commit e8d3e55b9c
4 changed files with 27 additions and 3 deletions

View file

@ -58,6 +58,7 @@ class HistoryRow extends Component {
track,
quality,
customFormats,
customFormatScore,
qualityCutoffNotMet,
eventType,
sourceTitle,
@ -186,7 +187,7 @@ class HistoryRow extends Component {
key={name}
className={styles.customFormatScore}
>
{formatPreferredWordScore(data.customFormatScore)}
{formatPreferredWordScore(customFormatScore)}
</TableRowCell>
);
}
@ -254,6 +255,7 @@ HistoryRow.propTypes = {
track: PropTypes.object,
quality: PropTypes.object.isRequired,
customFormats: PropTypes.arrayOf(PropTypes.object),
customFormatScore: PropTypes.number.isRequired,
qualityCutoffNotMet: PropTypes.bool.isRequired,
eventType: PropTypes.string.isRequired,
sourceTitle: PropTypes.string.isRequired,