mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-11 22:51:05 +00:00
apply sentry suggestion
This commit is contained in:
parent
c261a840da
commit
5f32367988
1 changed files with 3 additions and 1 deletions
|
|
@ -736,7 +736,9 @@ const DocumentCard = memo(
|
|||
if (needsOgData && !ogData && !isLoadingOg && document.url) {
|
||||
setIsLoadingOg(true)
|
||||
fetchOgData(document.url)
|
||||
.then((data) => { if (data) setOgData(data) })
|
||||
.then((data) => {
|
||||
setOgData(data || {})
|
||||
})
|
||||
.finally(() => setIsLoadingOg(false))
|
||||
}
|
||||
}, [needsOgData, ogData, isLoadingOg, document.url])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue