Skip to content

Commit

Permalink
Fix: Gcode file name consists only of spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
IDKHTS committed Jan 9, 2024
1 parent 531aaa7 commit 0d09ff8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const GcodePreviewItem: React.FC<GcodePreviewItemProps> = React.memo((props) =>
if (!changeNameInput.current) {
return;
}
if (!changeNameInput.current.value) {
if (!changeNameInput.current.value || !changeNameInput.current.value.trim()) {
message.error("file name can't be blank");
return;
}
Expand Down

0 comments on commit 0d09ff8

Please sign in to comment.