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
No related merge requests found
......@@ -165,9 +165,6 @@ const feature_type = {
async SEND_FEATURES_FROM_GEOJSON({ state, dispatch, rootGetters }, 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
if(!geojson && !state.fileToImport && state.fileToImport.size === 0 ) return
......@@ -186,12 +183,6 @@ const feature_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('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