Upgrade to TypeScript v4.3.5

This commit is contained in:
Evan Hahn 2021-07-07 11:37:55 -05:00 committed by GitHub
parent f46fbf99df
commit 3827f05db9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 11 deletions

View file

@ -20,6 +20,9 @@ function mapStateToProps(state: StateType, ourProps: SmartProps) {
const { id, style } = ourProps;
const props = getMessageSearchResultSelector(state)(id);
if (!props) {
throw new Error('SmartMessageSearchResult: no message was found');
}
return {
...props,