Skip to content

Commit 8dcf664

Browse files
authored
Fix: Prevent filtering out empty text values in getExportTypes utility (#615)
1 parent 11ed7ca commit 8dcf664

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/roam/src/utils/getExportTypes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ const getExportTypes = ({
364364
}))
365365
)
366366
.filter(({ text }) => {
367+
if (!text) return false;
367368
if (matchedTexts.has(text)) return false;
368369
const isMatch = matchDiscourseNode({ title: text, ...n });
369370
if (isMatch) matchedTexts.add(text);

0 commit comments

Comments
 (0)