diff --git a/src/store/modules/feature_type.js b/src/store/modules/feature_type.js index 3527805f2ce04ac218013a9b91e860fda15e82ed..ce196dbb82a29b81b6082b9fe59d0cf0e994f94f 100644 --- a/src/store/modules/feature_type.js +++ b/src/store/modules/feature_type.js @@ -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);