Skip to content
Snippets Groups Projects
Commit aba2f5ee authored by Timothee P's avatar Timothee P :sunflower:
Browse files

remove console.log$

parent c84f6059
No related branches found
No related tags found
4 merge requests!295Version 3.0.0,!247REDMINE_ISSUE-12787,!245REDMINE_ISSUE-12786,!233REDMINE_ISSUE-12378
...@@ -165,9 +165,6 @@ const feature_type = { ...@@ -165,9 +165,6 @@ const feature_type = {
async SEND_FEATURES_FROM_GEOJSON({ state, dispatch, rootGetters }, payload) { async SEND_FEATURES_FROM_GEOJSON({ state, dispatch, rootGetters }, payload) {
let { feature_type_slug, geojson } = payload; let { feature_type_slug, geojson } = payload;
console.log(feature_type_slug ,geojson)
//todo: add geojson from payload
//* check if geojson then build a file //* check if geojson then build a file
if(!geojson && !state.fileToImport && state.fileToImport.size === 0 ) return if(!geojson && !state.fileToImport && state.fileToImport.size === 0 ) return
...@@ -186,12 +183,6 @@ const feature_type = { ...@@ -186,12 +183,6 @@ const feature_type = {
}; };
} }
fileToImport = new File([JSON.stringify(geojson)], name, {type}); fileToImport = new File([JSON.stringify(geojson)], name, {type});
// todo : use commonly next lines for geojson
// formData.append('json_file', newFile);
/* else {
formData.append('json_file', state.fileToImport);
} */
formData.append('json_file', geojson ? fileToImport : state.fileToImport); formData.append('json_file', geojson ? fileToImport : state.fileToImport);
formData.append('feature_type_slug', feature_type_slug); formData.append('feature_type_slug', feature_type_slug);
......
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