Skip to content

Commit ca6eb31

Browse files
committed
feat: Disabling the Save button when no name
1 parent 99746cb commit ca6eb31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/core/CreateShape.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ const CreateShape = (props) => {
316316
<Button onClick={() => props.handleClose()} variant="outline-info">
317317
Close
318318
</Button>
319-
<Button variant="secondary" type="submit" form="createShapeForm">
319+
<Button variant="secondary" type="submit" form="createShapeForm" disabled={!shapeInformation.name}>
320320
Save
321321
</Button>
322322
</Modal.Footer>

0 commit comments

Comments
 (0)