Skip to content

Commit

Permalink
Fix uq name handling
Browse files Browse the repository at this point in the history
  • Loading branch information
relf committed Nov 8, 2022
1 parent d3eda32 commit fedba1e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/javascript/mda_viewer/components/VariablesEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,12 @@ function ReadonlyCell({
textStyle += connections[index].active ? '' : ' text-inactive';
let info = cell.getValue();

// Case of the UQ column: display a distribution name
const { uq } = connections[index];
info = uq.length > 0 ? _uqLabelOf(uq[0]) : info;
info = uq.length > 1 ? `[${info}, ...]` : info;

if (id === 'uq') {
// Case of the UQ column: display a distribution name
const { uq } = connections[index];
info = uq.length > 0 ? _uqLabelOf(uq[0]) : info;
info = uq.length > 1 ? `[${info}, ...]` : info;
}
if (id === 'role') {
const selectOptions = _computeRoleSelection(connections[index]);
for (let i = 0; i < selectOptions.length; i += 1) {
Expand Down

0 comments on commit fedba1e

Please sign in to comment.