Closed Dual-0 closed 2 years ago
I'm glad you like it! Off the top of my head, there are two things that could be going wrong here:
ol()
isn't an array. You can use Array.isArray(value)
to check if value
is an array.map
function is not available in your version of JavaScript. This could happen if you're not running the application in Docker and you're using an older version of Node.js.Could you check if one of these is the case?
Never mind, I found the issue. The way I've documented the ol()
function in the readme isn't correct. It says:
ol(a('https://example.com', 'first'), 'second', 'third')
But the function currently only accepts arrays, so it has to be called like this:
ol([a('https://example.com', 'first'), 'second', 'third'])
In the next version I'll update the function to accept multiple arguments as well, but for now, making the change I've shown above should work.
Implemented in version 1.1.
Hi,
first of all: thanks for this amazing webhook gateway. The plugin building is great. No more E-Mail notifications about my infrastructure and or app updates. Thanks for this!
Today I try the ol() function to create bullet point list but the log shows me this error:
Thanks