fix: synapse import fails if synapses are missing desc
This commit is contained in:
parent
52cbd57367
commit
2ef9849dde
1 changed files with 3 additions and 3 deletions
|
@ -275,7 +275,7 @@ Metamaps.Import = {
|
|||
name: name,
|
||||
metacode_id: metacode.id,
|
||||
permission: permission || Metamaps.Active.Map.get('permission'),
|
||||
desc: desc,
|
||||
desc: desc || "",
|
||||
link: link
|
||||
})
|
||||
Metamaps.Topics.add(topic)
|
||||
|
@ -295,7 +295,7 @@ Metamaps.Import = {
|
|||
Metamaps.Famous.viz.hideInstructions()
|
||||
},
|
||||
|
||||
createSynapseWithParameters: function (description, category, permission,
|
||||
createSynapseWithParameters: function (desc, category, permission,
|
||||
topic1, topic2) {
|
||||
var node1 = topic1.get('node')
|
||||
var node2 = topic2.get('node')
|
||||
|
@ -306,7 +306,7 @@ Metamaps.Import = {
|
|||
} // if
|
||||
|
||||
var synapse = new Metamaps.Backbone.Synapse({
|
||||
desc: description,
|
||||
desc: desc || "",
|
||||
category: category,
|
||||
permission: permission,
|
||||
node1_id: topic1.id,
|
||||
|
|
Loading…
Reference in a new issue