Skip to content

Commit

Permalink
fix code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed May 25, 2023
1 parent 092ca05 commit e5750b6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/ui/fields/combo.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,6 @@ export function uiFieldCombo(field, context) {
}

function updateIcon(value) {
const key = field.type !== 'multiCombo' ? field.key : field.key.slice(0, -1);
value = tagValue(value);
let container = _container;
if (field.type === 'multiCombo' || field.type === 'semiCombo') {
Expand All @@ -566,6 +565,7 @@ export function uiFieldCombo(field, context) {
_tags = tags;
var stringsField = field.resolveReference('stringsCrossReference');

var isMixed = Array.isArray(tags[field.key]);
var showsValue = value => !isMixed && value && !(field.type === 'typeCombo' && value === 'yes');
var isRawValue = value => showsValue(value)
&& !stringsField.hasTextForStringId(`options.${value}`)
Expand Down Expand Up @@ -725,8 +725,6 @@ export function uiFieldCombo(field, context) {

updateIcon('');
} else {
var isMixed = Array.isArray(tags[field.key]);

var mixedValues = isMixed && tags[field.key].map(function(val) {
return displayValue(val);
}).filter(Boolean);
Expand Down

0 comments on commit e5750b6

Please sign in to comment.