Wrap all vizualizers into component context (#10755)
Steps are broken when a variable is set. This is because component instance is not set for version and run visualizers. Each step viewer should be wrapped by the instance context. Each diagram visualizer should be responsible for populating the output schema. Also fixing a billing error when running workflow.
This commit is contained in:
@ -83,10 +83,6 @@ export const VariableChip = ({
|
||||
|
||||
const stepOutputSchema = getStepsOutputSchema([stepId])?.[0];
|
||||
|
||||
if (!isDefined(stepOutputSchema)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const { variableLabel, variablePathLabel } =
|
||||
searchVariableThroughOutputSchema({
|
||||
stepOutputSchema,
|
||||
|
||||
@ -8,8 +8,8 @@ import { ActivityTargetableObject } from '@/activities/types/ActivityTargetableE
|
||||
import { FieldsCard } from '@/object-record/record-show/components/FieldsCard';
|
||||
import { CardType } from '@/object-record/record-show/types/CardType';
|
||||
import { ShowPageActivityContainer } from '@/ui/layout/show-page/components/ShowPageActivityContainer';
|
||||
import { WorkflowRunOutputVisualizer } from '@/workflow/components/WorkflowRunOutputVisualizer';
|
||||
import { WorkflowRunVisualizer } from '@/workflow/components/WorkflowRunVisualizer';
|
||||
import { WorkflowRunOutputVisualizer } from '@/workflow/workflow-diagram/components/WorkflowRunOutputVisualizer';
|
||||
import { WorkflowRunVisualizer } from '@/workflow/workflow-diagram/components/WorkflowRunVisualizer';
|
||||
import { WorkflowRunVisualizerEffect } from '@/workflow/workflow-diagram/components/WorkflowRunVisualizerEffect';
|
||||
import { WorkflowVersionVisualizer } from '@/workflow/workflow-diagram/components/WorkflowVersionVisualizer';
|
||||
import { WorkflowVersionVisualizerEffect } from '@/workflow/workflow-diagram/components/WorkflowVersionVisualizerEffect';
|
||||
|
||||
Reference in New Issue
Block a user