* 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:
parent
06e09facfe
commit
ea4ec26683
2 changed files with 13 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue