8000 fix(renderer): check for undefined before trimming style (#622) · designemail/nativescript-vue@9ce38a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9ce38a0

Browse files
authored
fix(renderer): check for undefined before trimming style (nativescript-vue#622)
1 parent f65d54c commit 9ce38a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/nativescript/renderer/ViewNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default class ViewNode {
131131

132132
/* istanbul ignore next */
133133
setStyle(property, value) {
134-
if (!(value = value.trim()).length) {
134+
if (!value || !(value = value.trim()).length) {
135135
return
136136
}
137137

0 commit comments

Comments
 (0)
0