Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Removed the logic that conditionally hides the mark_horizontal_lines field #1075

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