Upgrade to TypeScript v4.3.5
This commit is contained in:
parent
f46fbf99df
commit
3827f05db9
4 changed files with 13 additions and 11 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue