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": { 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]})`) ) } };