blocks: treat cancel in prompt as empty string

This commit is contained in:
Oleg Kalachev
2020-10-13 15:06:26 +03:00
parent e0512c209e
commit 5b370ee96b

View File

@@ -107,7 +107,7 @@ new ROSLIB.Topic({ ros: ros.ros, name: ros.priv + 'prompt', messageType: 'clover
name: ros.priv + 'input/' + msg.id,
messageType: 'std_msgs/String',
latch: true
}).publish(new ROSLIB.Message({ data: response }));
}).publish(new ROSLIB.Message({ data: response || '' }));
});
window.stopProgram = function() {