diff --git a/packages/editor/src/components/action-widget/pane/save-and-delete/index.tsx b/packages/editor/src/components/action-widget/pane/save-and-delete/index.tsx index 3c952254..0e622df3 100644 --- a/packages/editor/src/components/action-widget/pane/save-and-delete/index.tsx +++ b/packages/editor/src/components/action-widget/pane/save-and-delete/index.tsx @@ -13,20 +13,22 @@ const SaveAndDelete = (props: { }) => { return ( - { - props.closeModal(); - props.model.setValue(undefined); - }} - > - - + {props.model.getValue() && props.model.getValue().trim() !== '' && ( + { + props.closeModal(); + props.model.setValue(undefined); + }} + > + + + )} ); };