Skip to content

Closes #3186#3187

Merged
offtherailz merged 1 commit intogeosolutions-it:masterfrom
kappu72:fixFirefox
Sep 10, 2018
Merged

Closes #3186#3187
offtherailz merged 1 commit intogeosolutions-it:masterfrom
kappu72:fixFirefox

Conversation

@kappu72
Copy link
Copy Markdown
Contributor

@kappu72 kappu72 commented Sep 10, 2018

Description

Fix layers state selector to avoid new Array.protprype.flat function conflict.

Issues

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior? (You can also link to an open issue here)
If state layers property is array the selector fails returning the flat function instead of an array of layers

What is the new behavior?
The selectors works correctly always returning an array of layers

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@mbarto
Copy link
Copy Markdown
Contributor

mbarto commented Sep 10, 2018

@kappu72 are you sure layers.flat is not used anywhere else in the code?

@coveralls
Copy link
Copy Markdown

coveralls commented Sep 10, 2018

Coverage Status

Coverage decreased (-0.03%) to 80.885% when pulling 093a3ae on kappu72:fixFirefox into d6704ff on geosolutions-it:master.

@kappu72
Copy link
Copy Markdown
Contributor Author

kappu72 commented Sep 10, 2018

@mbarto yes there are some, but IMO layers in mastore2 state is always an object and not an array and in this case there isn't any conflict with new array.prototype.flat function.

@mbarto
Copy link
Copy Markdown
Contributor

mbarto commented Sep 10, 2018

ok, got it, makes sense

@offtherailz offtherailz merged commit b2f3cc2 into geosolutions-it:master Sep 10, 2018
@tdipisa tdipisa added this to the 2018.02.00 milestone Sep 10, 2018
offtherailz pushed a commit to offtherailz/MapStore2 that referenced this pull request Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Firefox 62/Chrome 69 - flat function conflicts with layers state

5 participants