From d2837ab5ae8be63abd6cec0820ef01eada2a89f4 Mon Sep 17 00:00:00 2001 From: Julia Friesel Date: Thu, 25 Oct 2018 16:02:21 +0200 Subject: [PATCH] Exclude isCycleStart in export --- lib/import-export/get-csv-column-names.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/import-export/get-csv-column-names.js b/lib/import-export/get-csv-column-names.js index 3e8b425..d8626cd 100644 --- a/lib/import-export/get-csv-column-names.js +++ b/lib/import-export/get-csv-column-names.js @@ -7,6 +7,9 @@ export default function getColumnNamesForCsv() { const schema = getSchema() const model = schema[schemaName] return Object.keys(model).reduce((acc, key) => { + // we don't want to include isCycleStart, because that is + // a derived value + if (key === 'isCycleStart') return acc const prefixedKey = prefix ? [prefix, key].join('.') : key const childSchemaName = model[key].objectType if (!childSchemaName) {