Skip to content
Snippets Groups Projects
Commit 6c744fc3 authored by Inga Kirschnick's avatar Inga Kirschnick
Browse files

Query Builder fix

parent c3834ca4
No related branches found
No related tags found
No related merge requests found
......@@ -195,6 +195,7 @@ class ConcordanceQueryBuilder {
}
queryChipFactory(dataType, prettyQueryText, queryText) {
this.elements.counter++;
window.location.href = '#query-container';
queryText = Utils.escape(queryText);
prettyQueryText = Utils.escape(prettyQueryText);
......@@ -295,7 +296,7 @@ class ConcordanceQueryBuilder {
this.elements.entity.innerHTML = 'Entity';
}
this.elements.counter -= 1;
if (this.elements.counter === 0) {
if (this.elements.counter <= 0) {
this.elements.queryContainer.classList.add('hide');
}
this.queryPreviewBuilder();
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment