Skip to content

Commit

Permalink
fix(renderer): check for undefined before trimming style (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Apr 9, 2020
1 parent f65d54c commit 9ce38a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/nativescript/renderer/ViewNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default class ViewNode {

/* istanbul ignore next */
setStyle(property, value) {
if (!(value = value.trim()).length) {
if (!value || !(value = value.trim()).length) {
return
}

Expand Down

0 comments on commit 9ce38a0

Please sign in to comment.