mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-07 00:02:18 +00:00
fix compile
This commit is contained in:
@@ -17,15 +17,18 @@
|
||||
if (observableOutputs) {
|
||||
Object.entries(observableOutputs).forEach(([k, output]) => {
|
||||
object[k] = undefined
|
||||
output?.subscribe({
|
||||
id: 'alloutputs' + componentId + '-' + k,
|
||||
next: (value) => {
|
||||
if (!hasContent) {
|
||||
hasContent = true
|
||||
output?.subscribe(
|
||||
{
|
||||
id: 'alloutputs' + componentId + '-' + k,
|
||||
next: (value) => {
|
||||
if (!hasContent) {
|
||||
hasContent = true
|
||||
}
|
||||
object[k] = value
|
||||
}
|
||||
object[k] = value
|
||||
}
|
||||
})
|
||||
},
|
||||
object[k]
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,12 +26,19 @@
|
||||
}))
|
||||
|
||||
$: if (outputs?.selectedTabIndex) {
|
||||
outputs.selectedTabIndex.subscribe({
|
||||
id: 'subgridoutput-' + parentId,
|
||||
next: (value) => {
|
||||
selected = value
|
||||
}
|
||||
})
|
||||
subscribeToOutput()
|
||||
}
|
||||
|
||||
function subscribeToOutput() {
|
||||
outputs.selectedTabIndex.subscribe(
|
||||
{
|
||||
id: 'subgridoutput-' + parentId,
|
||||
next: (value) => {
|
||||
selected = value
|
||||
}
|
||||
},
|
||||
selected
|
||||
)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user