reenabled @typescript-eslint/no-unnecessary-condition

This commit is contained in:
Eugene Pankov
2021-01-02 20:10:00 +01:00
parent 946f4292ef
commit 4d9cc91e91
36 changed files with 197 additions and 164 deletions

View File

@@ -10,7 +10,7 @@ import { HotkeyInputModalComponent } from './hotkeyInputModal.component'
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class MultiHotkeyInputComponent {
@Input() model: string[][]
@Input() model: string[][] = []
@Output() modelChange = new EventEmitter()
constructor (
@@ -18,9 +18,6 @@ export class MultiHotkeyInputComponent {
) { }
ngOnInit (): void {
if (!this.model) {
this.model = []
}
if (typeof this.model === 'string') {
this.model = [this.model]
}