Skip to content

Commit d48d363

Browse files
authored
[mri_violations] Fix MRI violations resolution status update for translated interfaces (#10217) (#10302)
Fixed a bug in the MRI Violations module where updating a resolution status (e.g., "Reran", "Rejected") applied changes to the wrong row (or no row) when using any non-English interface. * Resolves #10217
1 parent e20bbe9 commit d48d363

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/mri_violations/jsx/mriViolationsIndex.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function MRIViolationsIndex(props) {
8383
filter.label === t('Resolution Status', {ns: 'mri_violations'}),
8484
);
8585
const hashfilterIndex = filtersData.findIndex(
86-
(filter) => filter.label === 'hash',
86+
(filter) => filter.label === t('hash', {ns: 'mri_violations'}),
8787
);
8888
const dataIndex = data.findIndex(
8989
(row) => row[hashfilterIndex] === hashname,
@@ -116,7 +116,7 @@ function MRIViolationsIndex(props) {
116116
const formatColumn = (mapper, setPage) => {
117117
const Mapper = function(column, cell, rowData) {
118118
cell = mapper(column, cell);
119-
const hashname = rowData.hash;
119+
const hashname = rowData[t('hash', {ns: 'mri_violations'})];
120120
const labelTypeOfProblem = t('Type of Problem', {ns: 'mri_violations'});
121121
const labelProtocolViolation = t('Protocol Violation', {
122122
ns: 'mri_violations',

0 commit comments

Comments
 (0)