When trying to set a new symbol for certain events using the event transformer an error occours.
config:
eventTransformer: (ev) => {
if (ev.title.search('summer') > -1) ev.symbol = "umbrella-beach"
return ev
},
I have tried different variations to set the new symbol:
ev.symbol = "umbrella-beach"ev.symbol = "[umbrella-beach]"ev.symbol = "['umbrella-beach']"
error in console:
Uncaught (in promise) TypeError: event.symbol.join is not a function
at Class.draw (MMM-CalendarExt3.js:450:44)
at Class.getDom (MMM-CalendarExt3.js:153:16)
at main.js:113:35
at new Promise (<anonymous>)
at updateDom (main.js:111:10)
at Object.updateDom (main.js:552:4)
at Class.updateDom (module.js:358:6)
at MMM-CalendarExt3.js:102:14
When trying to set a new symbol for certain events using the event transformer an error occours.
config:
I have tried different variations to set the new symbol:
ev.symbol = "umbrella-beach"
ev.symbol = "[umbrella-beach]"
ev.symbol = "['umbrella-beach']"
error in console: