Skip to content

Commit

Permalink
Adjust typing
Browse files Browse the repository at this point in the history
  • Loading branch information
tkleinke committed Oct 20, 2022
1 parent 435d2f2 commit 61ccb7a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Component, ElementRef, EventEmitter, Input, OnChanges, Output, ViewChild } from '@angular/core';
import { Component, ElementRef, EventEmitter, Input, OnChanges, Output, SimpleChanges,
ViewChild } from '@angular/core';
import { clone, isEmpty, isString } from 'tsfun';
import { I18N } from 'idai-field-core';
import { Language } from '../../../../../services/languages';
Expand Down Expand Up @@ -39,7 +40,7 @@ export class MultiLanguageTextFieldComponent implements OnChanges {
|| (this.languages.length === 1 && this.languages[0].code !== I18N.UNSPECIFIED_LANGUAGE);


ngOnChanges(changes: any) {
ngOnChanges(changes: SimpleChanges) {

if (changes['languages']) {
this.tabLanguages = this.languages.length > 5 ? this.languages.slice(0, 4) : this.languages;
Expand Down

0 comments on commit 61ccb7a

Please sign in to comment.