From 59d1e24f36c73f32845a290a1414c837df2da6ea Mon Sep 17 00:00:00 2001 From: Eduardo Humberto Date: Tue, 13 Nov 2018 20:48:38 -0200 Subject: [PATCH] tainacan csv importer - set map for found headers in new csv (ref. #138) --- src/admin/components/edition/importer-mapping-form.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/admin/components/edition/importer-mapping-form.vue b/src/admin/components/edition/importer-mapping-form.vue index a5ef0d4e9..273067e9f 100644 --- a/src/admin/components/edition/importer-mapping-form.vue +++ b/src/admin/components/edition/importer-mapping-form.vue @@ -272,7 +272,9 @@ export default { this.fetchMappingImporter({ collection: this.collectionId, sessionId: this.sessionId }) .then(res => { - // TODO: save mapping + if( res ) { + this.mappedCollection['mapping'] = res; + } }) }) .catch((error) => {