Fix link preview race condition

This commit is contained in:
Evan Hahn
2021-06-02 19:19:40 -05:00
committed by GitHub
parent 66d9bb8418
commit 6642652bdb
3 changed files with 77 additions and 2 deletions

View File

@@ -597,5 +597,9 @@ export async function fetchLinkPreviewImage(
return null;
}
if (abortSignal.aborted) {
return null;
}
return { data, contentType };
}