diff --git a/lib/ControlledVocab/ControlledVocab.js b/lib/ControlledVocab/ControlledVocab.js index 9aa65a413..b1331c85e 100644 --- a/lib/ControlledVocab/ControlledVocab.js +++ b/lib/ControlledVocab/ControlledVocab.js @@ -478,6 +478,8 @@ class ControlledVocab extends React.Component { user = {name}; } else if (metadata.updatedByUserId === SYSTEM_USER_ID || !metadata.updatedByUserId) { user = ; + } else { + user = ; } return ( diff --git a/lib/ControlledVocab/tests/ControlledVocab-test.js b/lib/ControlledVocab/tests/ControlledVocab-test.js index ddb7cae11..19c4ea888 100644 --- a/lib/ControlledVocab/tests/ControlledVocab-test.js +++ b/lib/ControlledVocab/tests/ControlledVocab-test.js @@ -270,8 +270,8 @@ describe('ControlledVocab', () => { it('should have row count 7', () => cv.has({ rowCount: 7 })); - it('should render the row with last updated by user-1 without user firstname or lastname', async () => { - await mcl.find(MultiColumnListCell({ row: 4, columnIndex: 3, content: '4/18/2019 by ' })).exists(); + it('should render the row with last updated by unknown user without user firstname or lastname', async () => { + await mcl.find(MultiColumnListCell({ row: 5, columnIndex: 3, content: '4/18/2019 by Unknown user' })).exists(); }); it('should render the row with last updated by system with "System" text', async () => { diff --git a/package.json b/package.json index 1431b018d..49f06d4a4 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "node": ">=14.0.0" }, "stripes": { + "actsAs": [], "okapiInterfaces": { "notes": "2.0 3.0", "tags": "1.0",