diff options
author | bobzel <zzzman@gmail.com> | 2024-03-28 11:38:56 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-03-28 11:38:56 -0400 |
commit | 1b592f74a7df8f6dd7b2881032725f26aedff403 (patch) | |
tree | 900179f9218af09932b061b55c5153fa9575f13e /src/client/util/Scripting.ts | |
parent | 52bd492747cf169df7bcdecdbdbb353d45b19734 (diff) |
fixed keyvaluebox to show props document, never the doc in the fieldKey slot. changed computedFIelds to do mobx caching. changed text boxes to do updating from templates based on a fieldKey_autoUpdate flag combined with modification timestamps. enabled comparison box to work with text fields in addition to docs.
Diffstat (limited to 'src/client/util/Scripting.ts')
-rw-r--r-- | src/client/util/Scripting.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/client/util/Scripting.ts b/src/client/util/Scripting.ts index f5e162d16..31222aa50 100644 --- a/src/client/util/Scripting.ts +++ b/src/client/util/Scripting.ts @@ -88,15 +88,10 @@ function Run(script: string | undefined, customParams: string[], diagnostics: an } const result = compiledFunction.apply(thisParam, params).apply(thisParam, argsArray); - if (batch) { - batch.end(); - } - + batch?.end(); return { success: true, result }; } catch (error) { - if (batch) { - batch.end(); - } + batch?.end(); onError?.(script + ' ' + error); return { success: false, error, result: errorVal }; } |