Skip to content

Commit

Permalink
fix: step controls
Browse files Browse the repository at this point in the history
  • Loading branch information
BiswaViraj committed Dec 13, 2024
1 parent 5bd946e commit 6a4f22d
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,19 @@ import { getComponentByType } from '@/components/workflow-editor/steps/component
import { useWorkflow } from '@/components/workflow-editor/workflow-provider';
import { Separator } from '@/components/primitives/separator';
import { SidebarContent } from '@/components/side-navigation/sidebar';
import { CustomStepControls } from '../controls/custom-step-controls';

export const DigestControlValues = () => {
const { step } = useWorkflow();
const { uiSchema } = step?.controls ?? {};
const { step, workflow } = useWorkflow();
const { uiSchema, dataSchema } = step?.controls ?? {};

if (dataSchema && workflow) {
return (
<div>
<CustomStepControls dataSchema={dataSchema} origin={workflow.origin} />
</div>
);
}

if (!uiSchema || uiSchema?.group !== UiSchemaGroupEnum.DIGEST) {
return null;
Expand Down

0 comments on commit 6a4f22d

Please sign in to comment.