From 57595d91a56e486c6509c94f61714a82acf85414 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Sat, 11 Jan 2020 19:47:32 +0100 Subject: [PATCH] Don't accept empty value as a valid one in SM --- src/style_manager/model/Property.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/style_manager/model/Property.js b/src/style_manager/model/Property.js index cdf6624cb..daa8e4944 100644 --- a/src/style_manager/model/Property.js +++ b/src/style_manager/model/Property.js @@ -162,7 +162,7 @@ const Property = Backbone.Model.extend( getFullValue(val) { const fn = this.get('functionName'); let value = isUndefined(val) ? this.get('value') : val; - const hasValue = !isUndefined(value); + const hasValue = !isUndefined(value) && value !== ''; if (fn && hasValue) { value = `${fn}(${value})`;