Skip to content

Commit

Permalink
Not applying transform if there is no value
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh committed Jul 19, 2017
1 parent 9f17f49 commit eac82f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framer/TextLayer.coffee
Expand Up @@ -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) + ''
)

Expand Down

0 comments on commit eac82f2

Please sign in to comment.