mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-09 09:20:54 +00:00
Fix loading
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
e0a021ae19
commit
9206c20873
@ -328,8 +328,8 @@
|
||||
try {
|
||||
const data = linksData.get(url) ?? (await loadLinkPreviewData(url))
|
||||
linksData.set(url, data ?? null)
|
||||
if (data === undefined) continue
|
||||
if (draftId !== draft._id || !previewUrls.has(url)) return
|
||||
if (data === undefined || !previewUrls.has(url)) continue
|
||||
if (draftId !== draft._id) return
|
||||
draft = {
|
||||
...draft,
|
||||
links: [...draft.links, data]
|
||||
|
Loading…
Reference in New Issue
Block a user