Skip to content

Commit

Permalink
Fix #24292 Content Palette Should Not Show Archived Content (#24389)
Browse files Browse the repository at this point in the history
* add query to ES to not retrieve archive content

* fix broken test
  • Loading branch information
zJaaal committed Mar 20, 2023
1 parent 58dcd09 commit 1be38f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -233,7 +233,7 @@ describe('DotPaletteStore', () => {
lang: '1',
filter: '',
offset: '0',
query: '+contentType: product'
query: '+contentType: product +deleted: false'
});
expect(data.contentlets).toEqual([
contentletProductDataMock
Expand Down
Expand Up @@ -195,7 +195,7 @@ export class DotPaletteStore extends ComponentStore<DotPaletteState> {
lang: languageId || '1',
filter: filter || '',
offset: (event && event.first.toString()) || '0',
query: `+contentType: ${this.contentTypeVarName}`
query: `+contentType: ${this.contentTypeVarName} +deleted: false`
})
.pipe(take(1))
.subscribe((response: ESContent) => {
Expand Down

0 comments on commit 1be38f9

Please sign in to comment.