Skip to content

Commit

Permalink
Better prepare message preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Richard committed Aug 22, 2023
1 parent b8f6e23 commit 6630cc6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cms/schemas/fields/message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default defineType({
}}
>
<Text size={1} style={{ color }}>
{message}
{message.children}
</Text>
</Card>
</Box>
Expand All @@ -77,5 +77,11 @@ export default defineType({
type: 'type',
message: 'text',
},
prepare({ type, message }) {
return {
type: type,
message: message,
};
},
},
});

0 comments on commit 6630cc6

Please sign in to comment.