fix componentoutputviewer reset

This commit is contained in:
Ruben Fiszel
2023-12-01 07:55:33 +01:00
parent b6891c7683
commit 9ce6ebc86f
4 changed files with 6 additions and 3 deletions
@@ -505,6 +505,7 @@
>
</svelte:fragment>
<ComponentOutputViewer
suffix="table"
on:select={({ detail }) =>
connectOutput(
connectingInput,
@@ -267,7 +267,7 @@
return r
} catch (e) {
error = e.message
console.error("Eval error in app input '" + id + "' with key '" + key + "'", e)
console.warn("Eval error in app input '" + id + "' with key '" + key + "'", e)
return value
}
}
@@ -291,7 +291,7 @@
error = ''
return r
} catch (e) {
console.debug("Eval error in app input '" + id + "' with key '" + key + "'", e)
console.warn("Eval error in app input '" + id + "' with key '" + key + "'", e)
return e.message
}
} else if (input.type === 'static') {
@@ -39,6 +39,7 @@
>
</svelte:fragment>
<ComponentOutputViewer
suffix="connect"
on:select={({ detail }) =>
connectOutput(connectingInput, component.type, component.id, detail)}
componentId={component.id}
@@ -7,6 +7,7 @@
export let componentId: string
export let hasContent: boolean = false
export let suffix: string = ''
const { worldStore, connectingInput } = getContext<AppViewerContext>('AppViewerContext')
const { search, hasResult } = getContext<ContextPanelContext>('ContextPanel')
@@ -19,7 +20,7 @@
object[k] = undefined
output?.subscribe(
{
id: 'alloutputs' + componentId + '-' + k,
id: 'alloutputs' + suffix + componentId + '-' + k,
next: (value) => {
if (!hasContent) {
hasContent = true