Removed separate Config class

This commit is contained in:
Franco Speziali 2022-03-23 11:37:00 +01:00
parent b9cbe21203
commit 97d8429f22

View File

@ -14,7 +14,9 @@ export default class Calendar {
constructor(json) { constructor(json) {
this.jsonContent = json; this.jsonContent = json;
this.groupType = json["group"] ? json["group"].charAt(0) : GroupTypes.Day; this.groupType = json["group"]
? json["group"].charAt(0).toUpperCase()
: GroupTypes.Day;
this.events = new Events(json["events"]); this.events = new Events(json["events"]);
} }