make default category explicit in import.js

This commit is contained in:
Devin Howard 2016-10-13 14:23:55 +08:00
parent 7eae8deacb
commit b2a4acc99d

View file

@ -333,8 +333,8 @@ const Import = {
} // if
var synapse = new Metamaps.Backbone.Synapse({
desc: desc || "",
category: category,
desc: desc || ''
category: category || 'from-to',
permission: permission,
topic1_id: topic1.id,
topic2_id: topic2.id