Skip to content

Commit

Permalink
SearchKit - Fix token selector to use expression alias
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Jan 17, 2022
1 parent 8ecbb24 commit 8814f44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
var allFields = ctrl.admin.getAllFields(ctrl.suffix || '', ['Field', 'Custom', 'Extra', 'Pseudo']);
_.eachRight(ctrl.admin.savedSearch.api_params.select, function(fieldName) {
allFields.unshift({
id: fieldName,
id: _.last(fieldName.split(' AS ')),
text: searchMeta.getDefaultLabel(fieldName)
});
});
Expand Down

0 comments on commit 8814f44

Please sign in to comment.