diff --git a/src/style_manager/model/Property.js b/src/style_manager/model/Property.js index 7eee21631..cdf6624cb 100644 --- a/src/style_manager/model/Property.js +++ b/src/style_manager/model/Property.js @@ -162,12 +162,13 @@ const Property = Backbone.Model.extend( getFullValue(val) { const fn = this.get('functionName'); let value = isUndefined(val) ? this.get('value') : val; + const hasValue = !isUndefined(value); - if (fn && !isUndefined(value)) { + if (fn && hasValue) { value = `${fn}(${value})`; } - if (this.get('important')) { + if (hasValue && this.get('important')) { value = `${value} !important`; }