We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c49055 commit 97e98e0Copy full SHA for 97e98e0
1 file changed
webapp/components/definition/stimulationTargets/NetPyNEStimulationTarget.js
@@ -66,7 +66,8 @@ export default class NetPyNEStimulationTarget extends React.Component {
66
if (stimSourceName === undefined) {
67
try {
68
const NETPYNE_OBJ = "netpyne_geppetto.netParams.stimTargetParams"
69
- const SAFE_QUERY = `${NETPYNE_OBJ}['${stimName}']['source'] if "${stimName}" in ${NETPYNE_OBJ} else ''`
+ const STIM_TARGET_OBJ = `${NETPYNE_OBJ}['${stimName}']`
70
+ const SAFE_QUERY = `${STIM_TARGET_OBJ}['source'] if "${stimName}" in ${NETPYNE_OBJ} and "source" in ${STIM_TARGET_OBJ} else ''`
71
stimSourceName = await Utils.evalPythonMessage(SAFE_QUERY)
72
} catch (error){
73
console.log(error)
0 commit comments