Skip to content

Commit 0e63368

Browse files
committed
fix: submitActions이 없는 경우 에디터 하단에 빈 공백이 생기는 문제 수정
1 parent e174971 commit 0e63368

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/common/src/components/mdx_editor.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,10 @@ export const MDXEditor: React.FC<MDXEditorProps> = ({ sectionId, defaultValue, i
212212
]}
213213
style={TextEditorStyle}
214214
/>
215-
<Stack direction="row" spacing={2} sx={{ mt: 2 }}>
216-
{submitActions && submitActions.map((buttonProps, index) => <Button key={index} {...buttonProps} />)}
217-
</Stack>
215+
{
216+
submitActions && <Stack direction="row" spacing={2} sx={{ mt: 2 }}>
217+
{submitActions.map((buttonProps, index) => <Button key={index} {...buttonProps} />)}
218+
</Stack>
219+
}
218220
</Stack>;
219221
};

0 commit comments

Comments
 (0)