Skip to content

Commit

Permalink
Merge pull request #24 from KB-iGOT/nudges-msg-replace
Browse files Browse the repository at this point in the history
KAR-750 : fixed CIOS contench search Issue with or without blended program filter
  • Loading branch information
vishnubansaltarento authored Aug 22, 2024
2 parents b9d8066 + a8f8bad commit 7cef3a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ export class LearnSearchComponent implements OnInit, OnChanges, OnDestroy {
}

applyFilter(filter: any) {
// debugger
// let isFilterCheccked = false
let isModeratedFilterChecked = false
if (filter && filter.length > 0) {
Expand Down Expand Up @@ -411,11 +412,14 @@ export class LearnSearchComponent implements OnInit, OnChanges, OnDestroy {
}
this.extSearchRequestObject.searchString = data.request.query
const resExtSearch = await this.searchSrvc.fetchSearchDataforCios(this.extSearchRequestObject).toPromise().catch(_error => {})
const checkQuey: any = this.activated.queryParams
if ((this.myFilters && this.myFilters.length === 0) && (checkQuey && checkQuey._value && checkQuey._value.q)) {
if (resExtSearch && resExtSearch.data && resExtSearch.data.length > 0) {
resExtSearch.data.forEach((ele: any) => {
this.searchResults.unshift(ele)
})
}
}
this.totalResults = (response.result.count) ? response.result.count : this.searchResults.length
// this.facets = response.result.facets
this.primaryCategoryType = []
Expand Down
2 changes: 1 addition & 1 deletion project/ws/viewer/src/lib/plugins/html/html.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export class HtmlComponent implements OnInit, OnChanges, OnDestroy {
// a.click()
// URL.revokeObjectURL(objectUrl)
// })
if (this.htmlContent &&
if (this.htmlContent &&
this.htmlContent.mimeType !== 'text/x-url' &&
this.htmlContent.mimeType !== 'video/x-youtube') {
// if (this.htmlContent.status === 'Live') {
Expand Down

0 comments on commit 7cef3a9

Please sign in to comment.