small fixes

This commit is contained in:
Ruben Fiszel
2023-08-24 01:11:42 +02:00
parent 8ec95062b0
commit 253956cd44
3 changed files with 2 additions and 3 deletions
@@ -182,7 +182,7 @@
}
}
async function evalExpr(input: EvalAppInput): Promise<any> {
async function evalExpr(input: EvalAppInput | EvalV2AppInput): Promise<any> {
if (iterContext && $iterContext.disabled) return
try {
const r = await eval_like(
@@ -224,7 +224,7 @@
staticRunnableInputs[k] = field.value
} else if (field?.type == 'user') {
nonStaticRunnableInputs[k] = args?.[k]
} else if (field?.type == 'eval' && inputValues[k]) {
} else if (field?.type == 'eval' || (field?.type == 'evalv2' && inputValues[k])) {
nonStaticRunnableInputs[k] = await inputValues[k]?.computeExpr()
} else {
nonStaticRunnableInputs[k] = runnableInputValues[k]
@@ -29,7 +29,6 @@
import { Delete, ExternalLink } from 'lucide-svelte'
import GridCondition from './GridCondition.svelte'
import { isTriggerable } from './script/utils'
import ScriptSettingsSection from './script/shared/ScriptSettingsSection.svelte'
export let componentSettings: { item: GridItem; parent: string | undefined } | undefined =
undefined