Fixed change of value / value_current.
This commit is contained in:
parent
4946c40679
commit
01680a8ad3
1 changed files with 2 additions and 1 deletions
|
@ -141,8 +141,9 @@ reset config setting to default
|
|||
false
|
||||
end
|
||||
|
||||
# convert state ot hash to be able to store it as store
|
||||
# convert state into hash to be able to store it as store
|
||||
def state_check
|
||||
return if !state
|
||||
return if state && state.respond_to?('has_key?') && state.key?(:value)
|
||||
self.state_current = { value: state }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue