Skip to content

Commit a7a8236

Browse files
committed
eng-2016 make full optional
1 parent d54f0c7 commit a7a8236

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/database/src/crossAppContracts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ export type CrossAppNode = CrossAppBase & {
8282
nodeType: Ref;
8383
content: {
8484
direct: InlineCrossAppContent;
85-
full: InlineCrossAppTypedContent;
85+
full?: InlineCrossAppTypedContent;
8686
};
8787
};

packages/database/src/lib/crossAppConverters.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export const crossAppNodeToDbContent = (
8282
): LocalContentDataInput | undefined => {
8383
if (node === undefined) return undefined;
8484
const content = node.content[variant];
85+
if (content === undefined) return undefined;
8586
return inlineCrossAppContentToDbContent(
8687
{
8788
...content,

0 commit comments

Comments
 (0)