Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

Include text extraction for records

Hakan Shehu36c30299b79c
diff --git a/packages/core/src/lib/texts.ts b/packages/core/src/lib/texts.ts
index 3cecfcc6..4872d9b9 100644
--- a/packages/core/src/lib/texts.ts
+++ b/packages/core/src/lib/texts.ts
@@ -19,6 +19,15 @@ export const extractEntryText = (
text: extractBlockTexts(id, attributes.content),
};
}
+
+ if (attributes.type === 'record') {
+ return {
+ id,
+ name: attributes.name,
+ text: extractBlockTexts(id, attributes.content),
+ };
+ }
+
return undefined;
};