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)
|
await store.actions.save(newAutomation)
|
||||||
},
|
},
|
||||||
replace: async (automationId, automation) => {
|
replace: async (automationId, automation) => {
|
||||||
if (!automationId) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (!automation) {
|
if (!automation) {
|
||||||
store.update(state => {
|
store.update(state => {
|
||||||
// Remove the automation
|
// Remove the automation
|
||||||
|
|
Loading…
Reference in New Issue