Skip to content

Commit e0710ec

Browse files
authored
don't enforce font style and size on migration (#916)
1 parent 700a7ab commit e0710ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/roam/src/components/canvas/DiscourseRelationShape/discourseRelationMigrations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ export const createMigrations = ({
141141
filter: (r: any) =>
142142
r.typeName === "shape" && allNodeTypes.includes(r.type),
143143
up: (shape: any) => {
144-
shape.props.size = "m";
145-
shape.props.fontFamily = "draw";
144+
if (!shape.props.size) shape.props.size = "m";
145+
if (!shape.props.fontFamily) shape.props.fontFamily = "draw";
146146
},
147147
},
148148
{

0 commit comments

Comments
 (0)