Permalink
Browse files

Not applying transform if there is no value

  • Loading branch information...
nvh committed Jul 19, 2017
1 parent 9f17f49 commit eac82f23b96fe64294fd9a925a69f73f0cdae0c2
Showing with 1 addition and 1 deletion.
  1. +1 −1 framer/TextLayer.coffee
View
@@ -240,7 +240,7 @@ class exports.TextLayer extends Layer
)
@define "transform", layerProperty(@, "transform", null, null, _.isFunction, null, {exportable: false}, (layer, transform) ->
if layer.transform?
if layer.transform? and layer.value?
layer.text = layer.transform(layer.value) + ''
)

0 comments on commit eac82f2

Please sign in to comment.