Skip to content

Commit 6d0b20b

Browse files
committed
fix
1 parent 0e80f0b commit 6d0b20b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontend/src/components/GraphPage/MainGraph/MainGraph.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,10 @@ const MainGraph = forwardRef((props, ref) => {
623623
<div style={{ marginTop: '10px' }}>
624624
<button
625625
onClick={async () => {
626+
if (connectionName == '') {
627+
alert("Название не может быть пустым!")
628+
return
629+
}
626630
const { sourceId, targetId } = selectedSourceTask;
627631
try {
628632
const token = localStorage.getItem('token');

0 commit comments

Comments
 (0)