Skip to content

Commit

Permalink
fix(dashboard): prevent rendering CustomStepControls when dataSchema …
Browse files Browse the repository at this point in the history
…is not provided
  • Loading branch information
BiswaViraj committed Nov 8, 2024
1 parent 9c55383 commit ec17688
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import { JsonForm } from './json-form';
export function CustomStepControls({ dataSchema }: { dataSchema: ControlsMetadata['dataSchema'] }) {
const [isEditorOpen, setIsEditorOpen] = useState(true);

if (!dataSchema) {
return null;
}

return (
<Collapsible
open={isEditorOpen}
Expand Down

0 comments on commit ec17688

Please sign in to comment.