File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
packages/frontend/src/components/FlowStepTestController Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 11import { IExecutionStep , IJSONObject , IStep } from '@plumber/types'
22
3- import {
4- extractVariables ,
5- filterVariables ,
6- Variable ,
7- VISIBLE_VARIABLE_TYPES ,
8- } from '@/helpers/variables'
3+ import { extractVariables , Variable } from '@/helpers/variables'
94
105interface UseTestDetailsResult {
116 isTestSuccessful : boolean
@@ -28,13 +23,7 @@ export function useTestDetails(
2823 const lastErrorDetails = currentTestExecutionStep ?. errorDetails
2924
3025 const testVariables = currentTestExecutionStep
31- ? filterVariables (
32- extractVariables ( [ currentTestExecutionStep ] ) ,
33- ( variable ) => {
34- const variableType = variable . type ?? 'text'
35- return VISIBLE_VARIABLE_TYPES . includes ( variableType )
36- } ,
37- ) [ 0 ] ?. output ?? [ ]
26+ ? extractVariables ( [ currentTestExecutionStep ] ) [ 0 ] ?. output ?? [ ]
3827 : null
3928
4029 return {
You can’t perform that action at this time.
0 commit comments