Skip to content

Commit

Permalink
Merge pull request #176 from nzzdev/release-3.2.1
Browse files Browse the repository at this point in the history
Fix adding events to existing charts
  • Loading branch information
romankaravia authored Feb 14, 2020
2 parents edb9283 + 8c036db commit 6c3b2e9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 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": "3.2.0",
"version": "3.2.1",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
15 changes: 10 additions & 5 deletions resources/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -965,11 +965,13 @@
},
"date": {
"title": "Zeitpunkt",
"type": "string"
"type": "string",
"default": ""
},
"label": {
"title": "Annotation",
"type": "string"
"type": "string",
"default": ""
}
},
"required": ["date", "label"]
Expand All @@ -988,15 +990,18 @@
},
"dateFrom": {
"title": "Von",
"type": "string"
"type": "string",
"default": ""
},
"dateTo": {
"title": "Bis",
"type": "string"
"type": "string",
"default": ""
},
"label": {
"title": "Annotation",
"type": "string"
"type": "string",
"default": ""
}
},
"required": ["dateFrom", "dateTo", "label"]
Expand Down
2 changes: 1 addition & 1 deletion routes/notification/unsupportedDateFormatEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = {
eventDates.push(event.dateFrom, event.dateTo);
}
for (let eventDate of eventDates) {
if (!helpers.getDateFormatForValue(eventDate)) {
if (eventDate && !helpers.getDateFormatForValue(eventDate)) {
return {
message: {
title: "notifications.unsupportedDateFormatEvents.title",
Expand Down

0 comments on commit 6c3b2e9

Please sign in to comment.