From 237926b42ac686fe52b545d280083a6718e39abc Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Wed, 18 Mar 2020 00:25:37 +0100 Subject: [PATCH] Update getFullValue to return the default --- src/style_manager/model/Property.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/style_manager/model/Property.js b/src/style_manager/model/Property.js index ec895cd61..28c7a6afa 100644 --- a/src/style_manager/model/Property.js +++ b/src/style_manager/model/Property.js @@ -190,9 +190,14 @@ const Property = Backbone.Model.extend( */ getFullValue(val) { const fn = this.get('functionName'); + const def = this.getDefaultValue(); let value = isUndefined(val) ? this.get('value') : val; const hasValue = !isUndefined(value) && value !== ''; + if (value && def && value === def) { + return def; + } + if (fn && hasValue) { value = `${fn}(${value})`; }