Merge pull request #3510 from tylershuster/embed-cancel

all: noop on unmounted fetch embed error
This commit is contained in:
matildepark 2020-09-17 23:08:49 -04:00 committed by GitHub
commit 91ddc70c60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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