Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed '(plugin.variable || []).forEach is not a function' #213

Closed
wants to merge 1 commit into from
Closed

Fixed '(plugin.variable || []).forEach is not a function' #213

wants to merge 1 commit into from

Conversation

ardabeyazoglu
Copy link

PR Type

What kind of change does this PR introduce?

  • [ X ] Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Documentation changes
  • Other... Please describe:

PR Checklist

For bug fixes / features, please check if your PR fulfills the following requirements:

  • Testing has been carried out for the changes have been added
  • Regression testing has been carried out for existing functionality
  • Docs have been added / updated

What is the purpose of this PR?

This commit fixes '(plugin.variable || []).forEach is not a function' when using this plugin together with some others (e.g. calendar). The problem is triggered when plugin.variable is not an array but an object as follows:
{ _attributes:
{ name: 'CALENDAR_USAGE_DESCRIPTION',
value: 'This app can sync your calendar.' } }

With this fix, it will work either way.

Does this PR introduce a breaking change?

  • Yes
  • [ X ] No

What testing has been done on the changes in the PR?

What testing has been done on existing functionality?

Other information

This commit fixes '(plugin.variable || []).forEach is not a function' when using this plugin together with some others (e.g. calendar). The problem is triggered when plugin.variable is not an array but an object as follows:
{ _attributes:
   { name: 'CALENDAR_USAGE_DESCRIPTION',
     value: 'This app can sync your calendar.' } }
@ghost
Copy link

ghost commented Nov 9, 2019

DeepCode Report (#13faca)

DeepCode analyzed this pull request.
There are no new issues.

@mahnuh mahnuh mentioned this pull request Nov 11, 2019
11 tasks
@dpa99c
Copy link
Owner

dpa99c commented Nov 11, 2019

#219 now resolves this

@dpa99c dpa99c closed this Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants