Removed unnecessary check for automationid
This commit is contained in:
parent
e2311b8a55
commit
7db92c8aea
|
@ -249,9 +249,6 @@ const automationActions = store => ({
|
|||
await store.actions.save(newAutomation)
|
||||
},
|
||||
replace: async (automationId, automation) => {
|
||||
if (!automationId) {
|
||||
return
|
||||
}
|
||||
if (!automation) {
|
||||
store.update(state => {
|
||||
// Remove the automation
|
||||
|
|
Loading…
Reference in New Issue