Skip to content

Check variable types before use in normalize.js#5

Merged
harshalpatel91 merged 1 commit intocontentstack:developfrom
jacobimpson:typechecking
Mar 1, 2019
Merged

Check variable types before use in normalize.js#5
harshalpatel91 merged 1 commit intocontentstack:developfrom
jacobimpson:typechecking

Conversation

@jacobimpson
Copy link
Copy Markdown
Contributor

  • check value is array before attempting to map in normalizeModularBlock()
  • check value is not null before attempting to access object property in builtEntry()

- check value is array before attempting to map in normalizeModularBlock()
- check value is not null before attempting to access object property in builtEntry()
Comment thread src/normalize.js
Comment thread src/normalize.js
@harshalpatel91 harshalpatel91 merged commit 5d137a3 into contentstack:develop Mar 1, 2019
@jacobimpson jacobimpson deleted the typechecking branch March 1, 2019 10:08
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