From 372e043ed47c47f7677406bdb1115c7fe577dc29 Mon Sep 17 00:00:00 2001 From: Innei Date: Sun, 18 Aug 2024 12:11:02 +0800 Subject: [PATCH] fix: ref not found error Signed-off-by: Innei --- src/renderer/src/modules/entry-column/Items/picture-masonry.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/src/modules/entry-column/Items/picture-masonry.tsx b/src/renderer/src/modules/entry-column/Items/picture-masonry.tsx index b939e78442..6e6fc2dbb1 100644 --- a/src/renderer/src/modules/entry-column/Items/picture-masonry.tsx +++ b/src/renderer/src/modules/entry-column/Items/picture-masonry.tsx @@ -68,6 +68,7 @@ export const PictureMasonry: FC = (props) => { const images = [] as string[] data.forEach((entryId) => { const entry = getEntry(entryId) + if (!entry) return images.push(...imageActions.getImagesFromEntry(entry.entries)) })