diff --git a/frontend/src/lib/components/apps/components/display/table/AppAggridTable.svelte b/frontend/src/lib/components/apps/components/display/table/AppAggridTable.svelte index 83db401873..5206e93890 100644 --- a/frontend/src/lib/components/apps/components/display/table/AppAggridTable.svelte +++ b/frontend/src/lib/components/apps/components/display/table/AppAggridTable.svelte @@ -117,7 +117,7 @@ {/each} - {#if Array.isArray(result) && result.every(isObject)} + {#if Array.isArray(value) && value.every(isObject)} {#if Array.isArray(resolvedConfig.columnDefs) && resolvedConfig.columnDefs.every(isObject)}
+ {:else} + The columnDefs are undefined {/if} {:else if result != undefined} diff --git a/frontend/src/lib/components/apps/components/helpers/InputValue.svelte b/frontend/src/lib/components/apps/components/helpers/InputValue.svelte index 037299044e..2bb6dfd265 100644 --- a/frontend/src/lib/components/apps/components/helpers/InputValue.svelte +++ b/frontend/src/lib/components/apps/components/helpers/InputValue.svelte @@ -146,6 +146,7 @@ return r } catch (e) { error = e.message + console.error("Eval error in app input '" + id + "' with key '" + key, e) return value } } @@ -169,6 +170,7 @@ error = '' return r } catch (e) { + console.debug("Eval error in app input '" + id + "' with key '" + key, e) return e.message } } else if (input.type === 'static') { diff --git a/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte b/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte index 2f92cbc122..eddb2045a8 100644 --- a/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte +++ b/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte @@ -641,6 +641,12 @@ > {:else if testIsLoading}
+ {:else if job != undefined && 'result' in job && job?.['result'] == undefined} +
Result is undefined
+ {:else} +
+ +
{/if} diff --git a/frontend/src/lib/components/apps/editor/contextPanel/components/IdEditor.svelte b/frontend/src/lib/components/apps/editor/contextPanel/components/IdEditor.svelte index da2d76262e..c8d3ae8dba 100644 --- a/frontend/src/lib/components/apps/editor/contextPanel/components/IdEditor.svelte +++ b/frontend/src/lib/components/apps/editor/contextPanel/components/IdEditor.svelte @@ -11,14 +11,14 @@ export let id: string const dispatch = createEventDispatcher() - const regex = /^[a-zA-Z0-9]{1,}$/ + const regex = /^[a-zA-Z][a-zA-Z0-9]*$/ let value = id let button: HTMLButtonElement let input: HTMLInputElement let error = '' $: if (!regex.test(value)) { - error = 'The ID must include only letters and numbers' + error = 'The ID must include only letters and numbers and start with a letter' } else if (forbiddenIds.includes(value)) { error = 'This ID is reserved' } else if ( diff --git a/frontend/src/lib/components/apps/editor/contextPanel/components/OutputHeader.svelte b/frontend/src/lib/components/apps/editor/contextPanel/components/OutputHeader.svelte index 62c84b1488..0782e85d4e 100644 --- a/frontend/src/lib/components/apps/editor/contextPanel/components/OutputHeader.svelte +++ b/frontend/src/lib/components/apps/editor/contextPanel/components/OutputHeader.svelte @@ -20,7 +20,7 @@ const { manuallyOpened, search, hasResult } = getContext('ContextPanel') - const { selectedComponent, app, hoverStore, allIdsInPath, connectingInput } = + const { selectedComponent, app, hoverStore, allIdsInPath, connectingInput, worldStore } = getContext('AppViewerContext') $: subids = $search != '' ? allsubIds($app, id) : [] @@ -91,6 +91,8 @@ $app = $app $selectedComponent = [newId] + + delete $worldStore.outputsById[id] } function renameComponent(from: string, to: string, data: AppComponent) {