Skip to content

Commit

Permalink
format document
Browse files Browse the repository at this point in the history
  • Loading branch information
Krupa Rami committed Oct 21, 2024
1 parent db55667 commit ebbd1e2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/app/components/json-patch-operation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ const JSONPatchOperation = (props: Props) => {
})

setFormData({})

setPath(property)
}

// Handle form data change to update pathValue in the parent
const handleFormDataChange = (data: any) => {
if (data && data.formData.pathValue !== pathValue) {
setPathValue(data.formData.pathValue);
setPathValue(data.formData.pathValue);
const errors = validateAgainstSchema(data.formData, initialSchema);
setValidationErrors(errors);
}
Expand Down Expand Up @@ -170,9 +170,9 @@ const JSONPatchOperation = (props: Props) => {
</Row>
{validationErrors.length > 0 && (
<div className="alert alert-danger">
{validationErrors.map((error) => (
[error]
))}
{validationErrors.map((error) => (
[error]
))}
</div>
)}
{path && (
Expand Down

0 comments on commit ebbd1e2

Please sign in to comment.