File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ export class Dialog {
266266 . set ( this . injector . get ( DIALOG_CONTAINER ) , dialogContainer )
267267 . set ( DIALOG_DATA , config . data ) ;
268268
269- if ( ! userInjector || ! userInjector . get ( Directionality , null ) ) {
269+ if ( ! userInjector || ! userInjector . get < Directionality | null > ( Directionality , null ) ) {
270270 injectionTokens . set ( Directionality , {
271271 value : config . direction ,
272272 change : observableOf ( )
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ export class MatBottomSheet {
146146 injectionTokens . set ( MatBottomSheetRef , bottomSheetRef ) ;
147147 injectionTokens . set ( MAT_BOTTOM_SHEET_DATA , config . data ) ;
148148
149- if ( ! userInjector || ! userInjector . get ( Directionality , null ) ) {
149+ if ( ! userInjector || ! userInjector . get < Directionality | null > ( Directionality , null ) ) {
150150 injectionTokens . set ( Directionality , {
151151 value : config . direction ,
152152 change : observableOf ( )
Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ export class MatDialog {
289289 . set ( MAT_DIALOG_DATA , config . data )
290290 . set ( MatDialogRef , dialogRef ) ;
291291
292- if ( ! userInjector || ! userInjector . get ( Directionality , null ) ) {
292+ if ( ! userInjector || ! userInjector . get < Directionality | null > ( Directionality , null ) ) {
293293 injectionTokens . set ( Directionality , {
294294 value : config . direction ,
295295 change : observableOf ( )
You can’t perform that action at this time.
0 commit comments