mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 17:41:33 +03:00
Merge pull request #3510 from tylershuster/embed-cancel
all: noop on unmounted fetch embed error
This commit is contained in:
commit
91ddc70c60
@ -64,6 +64,7 @@ export default class RemoteContent extends PureComponent<RemoteContentProps, Rem
|
||||
.then((result) => {
|
||||
this.setState({ embed: result });
|
||||
}).catch((error) => {
|
||||
if (error.name === 'AbortError') return;
|
||||
this.setState({ embed: 'error' });
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user