Skip to content
Snippets Groups Projects
Commit fe54d4fa authored by Alexey Lunin's avatar Alexey Lunin
Browse files

fix merge config params

parent e54e477c
No related branches found
No related tags found
1 merge request!25Ability to upload a document in Dashboard
......@@ -136,7 +136,7 @@ func buildViamAPI() string {
result += "\n"
}
result += " }, merge(this.config, config));\n" +
result += " }, merge({}, this.config, config));\n" +
"};\n\n"
} else {
splits := strings.Split(url, "/")
......@@ -151,7 +151,7 @@ func buildViamAPI() string {
methodStr := splits[len(splits)-1]
result += "ViamAPI.prototype." + packageStr + strings.Title(methodStr) + " = function(config, data) {\n" +
" return axios.post(window.API_HOST + '" + packageStr + "/" + methodStr + "', data, merge(this.config, config));\n" +
" return axios.post(window.API_HOST + '" + packageStr + "/" + methodStr + "', data, merge({}, this.config, config));\n" +
"};\n\n"
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment