Increase network timeouts (closes #248) (#249)

* Increase network timeouts (close #248)

* Fix: on post error only update the ext link card if it's in use
This commit is contained in:
Paul Frazee 2023-03-02 13:31:16 -06:00 committed by GitHub
parent 06e09facfe
commit ea4ec26683
2 changed files with 13 additions and 7 deletions

View file

@ -293,11 +293,13 @@ export const ComposePost = observer(function ComposePost({
imageCount: selectedPhotos.length,
})
} catch (e: any) {
setExtLink({
...extLink,
isLoading: true,
localThumb: undefined,
} as apilib.ExternalEmbedDraft)
if (extLink) {
setExtLink({
...extLink,
isLoading: true,
localThumb: undefined,
} as apilib.ExternalEmbedDraft)
}
setError(cleanError(e.message))
setIsProcessing(false)
return