diff --git a/frontend/src/lib/components/FlowStatusViewer.svelte b/frontend/src/lib/components/FlowStatusViewer.svelte
index adfacaa981..323e5106d1 100644
--- a/frontend/src/lib/components/FlowStatusViewer.svelte
+++ b/frontend/src/lib/components/FlowStatusViewer.svelte
@@ -40,11 +40,6 @@
}
}
- $: hasModules =
- jobResult.job &&
- Array.isArray(jobResult.job?.raw_flow?.modules) &&
- jobResult.job?.raw_flow?.modules.length! > 1
-
function updateJobId() {
if (jobId !== jobResult.job?.id) {
loadJobInProgress()
@@ -60,7 +55,7 @@
{#if jobResult.job}
-
Preview results
+ Flow result
{#if `result` in jobResult.job}
@@ -98,7 +93,7 @@
{/each}
- {:else if hasModules && Array.isArray(jobResult.innerJobs)}
+ {:else if Array.isArray(jobResult.innerJobs)}
Detailed results
diff --git a/frontend/src/lib/components/flows/content/FlowModule.svelte b/frontend/src/lib/components/flows/content/FlowModule.svelte
index fd1cc87949..844c3515d8 100644
--- a/frontend/src/lib/components/flows/content/FlowModule.svelte
+++ b/frontend/src/lib/components/flows/content/FlowModule.svelte
@@ -148,6 +148,7 @@
+
0 ? results[results.length - 1] : undefined
+ const lastResult = parentIndex == 0 ? flowInput : (
+ results.length > 0 ? results[results.length - 1] : NEVER_TESTED_THIS_FAR)
if (isInsideLoop) {
const forLoopFlowInput = {
diff --git a/frontend/src/lib/components/propertyPicker/ObjectViewer.svelte b/frontend/src/lib/components/propertyPicker/ObjectViewer.svelte
index cdba6819cc..f196128505 100644
--- a/frontend/src/lib/components/propertyPicker/ObjectViewer.svelte
+++ b/frontend/src/lib/components/propertyPicker/ObjectViewer.svelte
@@ -2,6 +2,7 @@
import { truncate } from '$lib/utils'
import { createEventDispatcher } from 'svelte'
+ import { NEVER_TESTED_THIS_FAR } from '../flows/flowStateUtils'
import { getTypeAsString } from '../flows/utils'
import { computeKey } from './utils'
import WarningMessage from './WarningMessage.svelte'
@@ -67,8 +68,10 @@
class="val rounded px-1 hover:bg-sky-100 {getTypeAsString(json[key])}"
on:click={() => selectProp(key)}
>
- {#if json[key] === undefined}
+ {#if json[key] === NEVER_TESTED_THIS_FAR}
+ {:else if json[key] == undefined}
+ undefined
{:else}
{truncate(JSON.stringify(json[key]), 40)}
{/if}
diff --git a/frontend/src/lib/components/propertyPicker/WarningMessage.svelte b/frontend/src/lib/components/propertyPicker/WarningMessage.svelte
index 03d6ed2c05..dd5f44cc27 100644
--- a/frontend/src/lib/components/propertyPicker/WarningMessage.svelte
+++ b/frontend/src/lib/components/propertyPicker/WarningMessage.svelte
@@ -1,16 +1,3 @@
-
-
-
- Previous results are not available unless a preview is run on the previous step.
-
+