mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-19 19:28:59 +00:00
Change to using _.has
This commit is contained in:
parent
c62db0867e
commit
38df4651cb
@ -372,7 +372,7 @@ application.update = update = (force) ->
|
||||
_.map remoteAppIds, (appId) ->
|
||||
if remoteAppEnvs[appId][key]? && specialActionCallback?
|
||||
# This makes the Special Action Envs only trigger their functions once.
|
||||
if executedSpecialActionEnvVars[key]?
|
||||
if _.has(executedSpecialActionEnvVars, key)
|
||||
if executedSpecialActionEnvVars[key] != remoteAppEnvs[appId][key]
|
||||
specialActionCallback(remoteAppEnvs[appId][key])
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user