mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 08:05:34 +00:00
[React Native] Prevent crash in redbox code with two thrown errors
This commit is contained in:
parent
6fc5a78956
commit
e59dcb3a60
@ -85,10 +85,9 @@
|
||||
|
||||
- (void)showErrorMessage:(NSString *)message withStack:(NSArray *)stack showIfHidden:(BOOL)shouldShow
|
||||
{
|
||||
_lastStackTrace = stack;
|
||||
_lastErrorMessage = message;
|
||||
|
||||
if (self.hidden && shouldShow) {
|
||||
_lastStackTrace = stack;
|
||||
_lastErrorMessage = message;
|
||||
|
||||
_cachedMessageCell = [self reuseCell:nil forErrorMessage:message];
|
||||
[_stackTraceTableView reloadData];
|
||||
|
Loading…
x
Reference in New Issue
Block a user