Skip to content

Commit

Permalink
Merge pull request #132 from nzzdev/release-2.0.2
Browse files Browse the repository at this point in the history
Release 2.0.2
  • Loading branch information
benib authored Jul 19, 2019
2 parents 5bb7e02 + ea2ba9f commit fb52bdb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "q-chart",
"version": "2.0.1",
"version": "2.0.2",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
8 changes: 6 additions & 2 deletions routes/dynamic-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]})`)
)
}
};
Expand Down

0 comments on commit fb52bdb

Please sign in to comment.