Skip to content

Commit

Permalink
fix: show url preview correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
oae committed Sep 11, 2022
1 parent 7997bb8 commit 78776a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/panoItemFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ const findOrCreateDbItem = async (clip: ClipboardContent): Promise<DBItem | null
let description = '',
imageUrl = '',
title = '',
checksum = null;
checksum = '';
if (!offlineMode) {
const document = await getDocument(value);
description = document.description;
title = document.title;
imageUrl = document.imageUrl;
checksum = await getImage(imageUrl)[0];
checksum = (await getImage(imageUrl))[0] || '';
}

return db.save({
Expand Down

0 comments on commit 78776a6

Please sign in to comment.