A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
CalendarExt3 - Event transformer wildcard
-
@sdetweil That did it… Well, other than typing out event rather than ev. :)
All the same, Maybe it should be a check inside the javascript…
-
-
For completeness - here’s the answer:
if(ev.description && ev.description.search("YCBM") > -1) { ev.title = "Client" }
-
-
@BKeyport sorry, phone decided to autocorrect for me.
but you got it. this IS javascript. without the test, the transformer crashed
-
@sdetweil right - what I’m saying is that maybe it should be in the module’s JS, rather than the config’s JS.
Seems trivial to add a safeguard to automatically check for empty items before the transformer gets it. Might also protect against other bugs that way, thus improving the overall product.
-
@BKeyport ah, but description is an optional field