mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-4985] Removed unused code from base-query-builder.service.ts
This commit is contained in:
committed by
Jatin_Chugh
parent
a75d6ebe15
commit
05f2524967
@@ -487,27 +487,12 @@ export abstract class BaseQueryBuilderService {
|
|||||||
let query = '';
|
let query = '';
|
||||||
|
|
||||||
this.categories.forEach((facet) => {
|
this.categories.forEach((facet) => {
|
||||||
let customQuery: string;
|
const customQuery = this.queryFragments[facet.id];
|
||||||
|
if (customQuery) {
|
||||||
if (facet.component.selector === 'widget-composite') {
|
if (query.length > 0) {
|
||||||
const widgetTabs: any[] = facet.component.settings.tabs;
|
query += ' AND ';
|
||||||
widgetTabs.forEach(tab => {
|
|
||||||
customQuery = this.queryFragments[tab.id];
|
|
||||||
if (customQuery) {
|
|
||||||
if (query.length > 0) {
|
|
||||||
query += ' AND ';
|
|
||||||
}
|
|
||||||
query += `(${customQuery})`;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
customQuery = this.queryFragments[facet.id];
|
|
||||||
if (customQuery) {
|
|
||||||
if (query.length > 0) {
|
|
||||||
query += ' AND ';
|
|
||||||
}
|
|
||||||
query += `(${customQuery})`;
|
|
||||||
}
|
}
|
||||||
|
query += `(${customQuery})`;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user