From 3808b41ad86a9bce880296b90c14404e2850cb50 Mon Sep 17 00:00:00 2001 From: benib Date: Fri, 19 Jul 2019 11:19:24 +0200 Subject: [PATCH 1/2] (color overwrite row) fix the dynamicSchema by not including the title row for row overwrite enums --- routes/dynamic-schema.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/routes/dynamic-schema.js b/routes/dynamic-schema.js index 138b5f8a..3363eac4 100644 --- a/routes/dynamic-schema.js +++ b/routes/dynamic-schema.js @@ -81,10 +81,14 @@ module.exports = { if (request.params.optionName === "colorOverwritesRowsItem") { try { return { - enum: [null].concat(item.data.map((row, index) => index + 1)), + enum: [null].concat( + item.data.slice(1).map((row, index) => index + 1) + ), "Q:options": { enum_titles: [""].concat( - item.data.map((row, index) => `${index + 1} - (${row[0]})`) + item.data + .slice(1) + .map((row, index) => `${index + 1} - (${row[0]})`) ) } }; From ea2ba9f59ccac87cfea162712adfd54553455cdb Mon Sep 17 00:00:00 2001 From: benib Date: Fri, 19 Jul 2019 11:19:51 +0200 Subject: [PATCH 2/2] v2.0.2 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 238c530c..acabd24e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "q-chart", - "version": "2.0.1", + "version": "2.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 31e26459..8d8441bd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "q-chart", - "version": "2.0.1", + "version": "2.0.2", "description": "", "main": "index.js", "scripts": {