Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

TypeError: fields[key].fields.forEach is not a function #321

Closed
ngprice opened this issue Jan 9, 2019 · 1 comment
Closed

TypeError: fields[key].fields.forEach is not a function #321

ngprice opened this issue Jan 9, 2019 · 1 comment

Comments

@ngprice
Copy link

ngprice commented Jan 9, 2019

On Konga 0.14.1-rc11 with Kong 1.0.0.

I add a Consumer and save. Then within that Consumer's view, navigate to Plugins > + Add New Plugin > Transformations > Request Transformer. Enter info in fields, click Add Plugin; UI hangs and I see this in console:

plugin_typeerror

TypeError: fields[key].fields.forEach is not a function
    at plugin-helper-service.js?r=0.14.1-rc11:60
    at Array.forEach (<anonymous>)
    at createConfigProperties (plugin-helper-service.js?r=0.14.1-rc11:36)
    at Object.createConfigProperties (plugin-helper-service.js?r=0.14.1-rc11:127)
    at Scope.$scope.addPlugin (add-plugin-controller.js?r=0.14.1-rc11:148)
    at fn (eval at compile (angular.js?r=0.14.1-rc11:15126), <anonymous>:4:218)
    at expensiveCheckFn (angular.js?r=0.14.1-rc11:16213)
    at callback (angular.js?r=0.14.1-rc11:26592)
    at Scope.$eval (angular.js?r=0.14.1-rc11:17994)
    at Scope.$apply (angular.js?r=0.14.1-rc11:18094)
    at HTMLButtonElement.<anonymous> (angular.js?r=0.14.1-rc11:26597)
    at HTMLButtonElement.dispatch (jquery.js?r=0.14.1-rc11:4430)
    at HTMLButtonElement.elemData.handle (jquery.js?r=0.14.1-rc11:4116)

Apologies if this has been addressed/logged; I checked #288 and didn't see it. Thank you pantsel for your hard work on this project.

@pantsel pantsel closed this as completed Jan 12, 2019
@pantsel
Copy link
Owner

pantsel commented Jan 12, 2019

@ngprice Cheers mate

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants