Skip to content

Commit

Permalink
FIX: Removed the logic that conditionally hides the `mark_horizontal_…
Browse files Browse the repository at this point in the history
…lines` field (#1075)

* Remove the logic to hide 'mark_horizontal_lines' field for LLMW V2 adapter

* Styling improvement for error message for RJSF fields

---------

Co-authored-by: Athul <[email protected]>
Co-authored-by: Jaseem Jas <[email protected]>
  • Loading branch information
3 people authored Jan 31, 2025
1 parent 27e3330 commit 9137c32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Typography } from "antd";
import PropTypes from "prop-types";

const CustomFieldTemplate = (props) => {
const { classNames, errors, children, help } = props;
return (
<div className={classNames}>
{children}
{errors}
<Typography.Text type="danger">{errors}</Typography.Text>
{help}
</div>
);
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/layouts/rjsf-form-layout/RjsfFormLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ function RjsfFormLayout({
const uiSchema = useMemo(
() => ({
"ui:classNames": "my-rjsf-form",
mark_horizontal_lines: {
"ui:widget": !formData?.mark_vertical_lines ? "hidden" : undefined,
},
}),
[formData]
);
Expand Down

0 comments on commit 9137c32

Please sign in to comment.