# HG changeset patch # User Drew Perttula # Date 2019-05-30 08:31:29 # Node ID b697752b35f9122f25a2cd9e3b8dccd287d7b65a # Parent 64eeba9601685cac48cc79ccd145738c4c47b7fe note about a bug Ignore-this: 6cc4dbd36a5cdc32496f114d5649b8e0 diff --git a/light9/web/live/live.coffee b/light9/web/live/live.coffee --- a/light9/web/live/live.coffee +++ b/light9/web/live/live.coffee @@ -344,6 +344,9 @@ class GraphToControls if (value == undefined or (typeof value == "number" and isNaN(value)) or (typeof value == "object" and value != null and not value.id)) throw new Error("controlChanged sent bad value " + value) effectSetting = @activeSettings.effectSettingLookup(device, deviceAttr) + + # sometimes this misses an existing setting, which leads to a mess + if @shouldBeStored(deviceAttr, value) if not effectSetting? @_addEffectSetting(device, deviceAttr, value)