Custom component sending payloads

Hi I am making a custom component and trying to send my payloads via and action or hooks. But at the execution of

const payloads = await bp.cms.renderElement(‘infa_dynamicdropdown’, options, event)

this line i get the following error. although my variable option has data in it. I did console log and checked it.

STACK TRACE
TypeError: Cannot read property 'map' of undefined
    at render (C:\Users\paupri\AppData\Local\Temp\sandbox-16868k3f0M1Z3klgJ\builtin\881800.js:22:28)
    at Object.renderElement (C:\Users\paupri\AppData\Local\Temp\sandbox-16868k3f0M1Z3klgJ\builtin\881800.js:58:12)
    at Object.base.apply (C:\Users\paupri\Desktop\botpress-master\node_modules\vm2\lib/contextify.js:158:34)
    at CMSService.<anonymous> (C:\Users\paupri\Desktop\botpress-master\out\bp\core\services\cms.js:499:54)
    at Generator.next (<anonymous>)
    at fulfilled (C:\Users\paupri\Desktop\botpress-master\out\bp\core\services\cms.js:16:58)
    at tryCatcher (C:\Users\paupri\Desktop\botpress-master\modules\nlu\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (C:\Users\paupri\Desktop\botpress-master\modules\nlu\node_modules\bluebird\js\release\promise.js:517:31)
    at Promise._settlePromise (C:\Users\paupri\Desktop\botpress-master\modules\nlu\node_modules\bluebird\js\release\promise.js:574:18)
    at Promise._settlePromiseCtx (C:\Users\paupri\Desktop\botpress-master\modules\nlu\node_modules\bluebird\js\release\promise.js:611:10)
08:51:53.974  bp:dialog (demo) [9zLgHIutxfPLKHMdOv14] transit (main.flow.json) [node-6d84] >> (error.flow.json) [entry]{ botId: 'demo' }, +58ms
08:51:53.982  bp:dialog (demo) [9zLgHIutxfPLKHMdOv14] ending flow{ botId: 'demo' }, +9ms