Skip to content

Commit

Permalink
Allow prtl choice filters w/ sem_annotation field
Browse files Browse the repository at this point in the history
Only render the AnnotationFilterWidget when the field is sem_annotation AND the filter type is Filter (not ChoiceFilter)

Fixes #2174
  • Loading branch information
robyngit committed Aug 3, 2023
1 parent e967576 commit 0f5fc16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/views/filters/FilterGroupView.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ define(['jquery', 'underscore', 'backbone',
//Create a ToggleView
var filterView = new ToggleFilterView(viewOptions);
}
else if (view.areAllFieldsSemantic(filter.get("fields")) && MetacatUI.appModel.get("bioportalAPIKey")) {
else if (view.areAllFieldsSemantic(filter.get("fields")) && MetacatUI.appModel.get("bioportalAPIKey") && filter.type === "Filter") {

This comment has been minimized.

Copy link
@rushirajnenuji

rushirajnenuji Aug 11, 2023

Member

good catch @robyngit

var filterView = new SemanticFilterView(viewOptions);
}
else{
Expand Down

0 comments on commit 0f5fc16

Please sign in to comment.