File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ import { createSegmentLabel } from './segment-label-factory';
13
13
} )
14
14
export class WaveformViewComponent implements AfterViewInit {
15
15
16
- @Input ( ) selectedAudio : ExampleAudio = { } as ExampleAudio ;
17
- @ViewChild ( "zoomviewContainer" ) zoomview : ElementRef = { } as ElementRef ;
18
- @ViewChild ( "overviewContainer" ) overview : ElementRef = { } as ElementRef ;
19
- @ViewChild ( "audio" ) audioElement : ElementRef = { } as ElementRef ;
16
+ @Input ( ) selectedAudio ! : ExampleAudio ;
17
+ @ViewChild ( "zoomviewContainer" ) zoomview ! : ElementRef ;
18
+ @ViewChild ( "overviewContainer" ) overview ! : ElementRef ;
19
+ @ViewChild ( "audio" ) audioElement ! : ElementRef ;
20
20
peaks ?: PeaksInstance ;
21
21
22
22
constructor ( ) {
@@ -78,7 +78,7 @@ export class WaveformViewComponent implements AfterViewInit {
78
78
}
79
79
80
80
ngOnChanges ( changes : SimpleChanges ) : void {
81
- if ( ! this . audioElement . nativeElement ) {
81
+ if ( ! this . audioElement ) {
82
82
return ;
83
83
}
84
84
You can’t perform that action at this time.
0 commit comments