Skip to content

Commit

Permalink
close #1043
Browse files Browse the repository at this point in the history
  • Loading branch information
BeritJanssen committed Oct 11, 2023
1 parent c3682bc commit 8150686
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions frontend/src/app/visualization/ngram/ngram.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,6 @@ export class NgramComponent extends ParamDirective implements OnChanges {
paramService: ParamService
) {
super(route, router, paramService);
this.currentParameters = new NgramParameters(
this.sizeOptions[0].value,
this.positionsOptions[0].value,
this.freqCompensationOptions[0].value,
'none',
this.maxDocumentsOptions[0].value,
this.numberOfNgramsOptions[0].value,
'date'
);
}

initialize() {}
Expand All @@ -90,6 +81,15 @@ export class NgramComponent extends ParamDirective implements OnChanges {
this.resultsCache = {};
this.allDateFields = this.corpus.fields.filter(field => field.mappingType === 'date');
this.dateField = this.allDateFields[0];
this.currentParameters = new NgramParameters(
this.sizeOptions[0].value,
this.positionsOptions[0].value,
this.freqCompensationOptions[0].value,
'none',
this.maxDocumentsOptions[0].value,
this.numberOfNgramsOptions[0].value,
this.dateField.name
);
if (this.visualizedField.multiFields) {
this.analysisOptions = [{label: 'None', value: 'none'}]
.concat(this.visualizedField.multiFields.map(subfield => {
Expand Down

0 comments on commit 8150686

Please sign in to comment.