This commit is contained in:
Andrew Kingston 2024-03-11 09:32:52 +00:00
parent 428fdfcc0a
commit 7d1af03e62
1 changed files with 6 additions and 0 deletions

View File

@ -77,6 +77,12 @@
$: runtimeExpression = readableToRuntimeBinding(enrichedBindings, value)
$: requestUpdateEvaluation(runtimeExpression, context)
$: bindingHelpers = new BindingHelpers(getCaretPosition, insertAtPos)
$: {
// Ensure a valid side panel option is always selected
if (sidePanel && !sidePanelOptions.includes(sidePanel)) {
sidePanel = sidePanelOptions[0]
}
}
const debouncedUpdateEvaluation = Utils.debounce((expression, context) => {
expressionResult = processStringSync(expression || "", context)