aboutsummaryrefslogtreecommitdiff
path: root/js/panels/properties/content.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/properties/content.reel')
-rw-r--r--js/panels/properties/content.reel/content.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/js/panels/properties/content.reel/content.js b/js/panels/properties/content.reel/content.js
index 20dc308f..0088447a 100644
--- a/js/panels/properties/content.reel/content.js
+++ b/js/panels/properties/content.reel/content.js
@@ -197,8 +197,11 @@ exports.Content = Montage.create(Component, {
197 197
198 if(control.type !== "color") { 198 if(control.type !== "color") {
199 currentValue = ElementsMediator.getProperty(el, control.prop, control.valueMutator); 199 currentValue = ElementsMediator.getProperty(el, control.prop, control.valueMutator);
200 currentValue ? currentValue = currentValue : currentValue = control.defaultValue; 200 if(currentValue === null)
201 this.customSections[0].content.controls[control.id] = currentValue; 201 {
202 currentValue = control.defaultValue;
203 }
204 this.customSections[i].content.controls[control.id] = currentValue;
202 } 205 }
203 else 206 else
204 { 207 {