Mark that state may be undefined

This commit is contained in:
Matt Bierner
2019-07-16 15:15:01 -07:00
parent b185e5b77c
commit e26db506b7
2 changed files with 4 additions and 4 deletions

View File

@@ -230,7 +230,7 @@ export class MainThreadWebviews extends Disposable implements MainThreadWebviews
if (!webview || webview.isDisposed()) {
return;
}
(webview as WebviewEditorInput<MainThreadWebviewState>).state.state = newState;
(webview as WebviewEditorInput<MainThreadWebviewState>).state!.state = newState;
}
};
}