mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 16:02:28 +00:00
fix componentoutputviewer reset
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user