all: noop on unmounted fetch embed error

fixes #3500
This commit is contained in:
Tyler Brown Cifu Shuster 2020-09-17 19:50:24 -07:00
parent 6f5663bcd3
commit 261de5d994

View File

@ -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' });
});
}