fix issue with automation setting sync
This commit is contained in:
parent
84b2a36fda
commit
9c47671032
|
@ -158,6 +158,7 @@ export const getFrontendStore = () => {
|
|||
...INITIAL_FRONTEND_STATE.features,
|
||||
...application.features,
|
||||
},
|
||||
automations: application.automations || {},
|
||||
icon: application.icon || {},
|
||||
initialised: true,
|
||||
}))
|
||||
|
|
|
@ -292,7 +292,6 @@
|
|||
loopBlockCount++
|
||||
continue
|
||||
}
|
||||
console.log(schema)
|
||||
Object.entries(schema).forEach(([name, value]) =>
|
||||
addBinding(name, value, icon, idx, isLoopBlock, bindingName)
|
||||
)
|
||||
|
|
|
@ -36,15 +36,12 @@
|
|||
let status = null
|
||||
let timeRange = null
|
||||
let loaded = false
|
||||
|
||||
$: app = $apps.find(app => app.devId === $store.appId?.includes(app.appId))
|
||||
$: app = $apps.find(app => $store.appId?.includes(app.appId))
|
||||
$: licensePlan = $auth.user?.license?.plan
|
||||
$: page = $pageInfo.page
|
||||
$: fetchLogs(automationId, status, page, timeRange)
|
||||
$: isCloud = $admin.cloud
|
||||
|
||||
$: chainAutomations = app?.automations?.chainAutomations ?? !isCloud
|
||||
|
||||
const timeOptions = [
|
||||
{ value: "90-d", label: "Past 90 days" },
|
||||
{ value: "30-d", label: "Past 30 days" },
|
||||
|
|
|
@ -445,6 +445,9 @@ export async function update(ctx: UserCtx) {
|
|||
name: app.name,
|
||||
url: app.url,
|
||||
icon: app.icon,
|
||||
automations: {
|
||||
chainAutomations: app.automations?.chainAutomations,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue