Skip to content

Commit e9184ee

Browse files
ekapic-vistaAJIXuMuK
authored andcommitted
term filtering condition fixed
1 parent 5f038be commit e9184ee

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/controls/taxonomyPicker/TermPicker.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ export default class TermPicker extends React.Component<ITermPickerProps, ITermP
154154
if (disableChildrenOfDisabledParents) {
155155
// Check if terms were already retrieved
156156
if (!this.allTerms) {
157-
this.allTerms = await this.termsService.getAllTerms(this.props.termPickerHostProps.termsetNameOrID);
157+
this.allTerms = await this.termsService.getAllTerms(this.props.termPickerHostProps.termsetNameOrID,
158+
this.props.termPickerHostProps.hideDeprecatedTags,
159+
this.props.termPickerHostProps.hideTagsNotAvailableForTagging);
158160
}
159161

160162
// Check if there are terms retrieved

src/services/SPTermStorePickerService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,8 @@ export default class SPTermStorePickerService {
387387
anchorId: this.props.anchorId ? this.props.anchorId : EmptyGuid,
388388
isSpanTermStores: false,
389389
isSpanTermSets: false,
390-
isIncludeUnavailable: this.props.hideTagsNotAvailableForTagging === true,
391-
isIncludeDeprecated: this.props.hideDeprecatedTags === true,
390+
isIncludeUnavailable: this.props.hideTagsNotAvailableForTagging !== true,
391+
isIncludeDeprecated: this.props.hideDeprecatedTags !== true,
392392
isAddTerms: false,
393393
isIncludePathData: false,
394394
excludeKeyword: false,

0 commit comments

Comments
 (0)