Skip to content

Commit

Permalink
Merge pull request #96 from PySpur-Dev/bugfix/output-json-schema
Browse files Browse the repository at this point in the history
Bugfix/output json schema
  • Loading branch information
preet-bhadra authored Jan 18, 2025
2 parents c7809bf + b792320 commit a61fdcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/nodes/nodeSidebar/NodeSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ const NodeSidebar: React.FC<NodeSidebarProps> = ({ nodeID }) => {
}

const initializeOutputJsonSchema = () => {
const jsonSchema = generateJsonSchemaFromSchema(currentNodeConfig.output_schema)
const jsonSchema = generateJsonSchemaFromSchema(nodeConfig.output_schema)
if (jsonSchema) {
const updates = {
output_json_schema: jsonSchema,
Expand All @@ -415,7 +415,7 @@ const NodeSidebar: React.FC<NodeSidebarProps> = ({ nodeID }) => {
}

useEffect(() => {
if (currentNodeConfig.output_schema && !currentNodeConfig.output_json_schema) {
if (nodeConfig.output_schema && !currentNodeConfig.output_json_schema) {
initializeOutputJsonSchema()
}
}, [])
Expand Down

0 comments on commit a61fdcf

Please sign in to comment.