Skip to content

Commit

Permalink
[#558] Fix cascade api in question level view
Browse files Browse the repository at this point in the history
  • Loading branch information
wayangalihpratama committed Dec 24, 2024
1 parent 842cc6d commit 12253e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion frontend/src/akvo-react-form/fields/TypeCascadeApi.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ const CascadeApiField = ({
return (
<Row
key={`keyform-cascade-${ci}`}
className="arf-field-cascade-list"
className={
show_repeat_in_question_level ? "" : "arf-field-cascade-list"
}
>
<Form.Item
name={[id, ci]}
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/akvo-react-form/support/RepeatTableView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {

// const repeatColumns = [
// {
// title: "Repeat",
// title: "Label",
// dataIndex: "label",
// key: "label",
// width: "30%",
Expand All @@ -29,8 +29,8 @@ const RepeatTableView = ({ id, dataSource = [] }) => {
align="middle"
style={{ paddingLeft: "20px" }}
>
{!ds?.is_repeat_identifier && <Col span={8}>{ds.label}</Col>}
<Col span={ds?.is_repeat_identifier ? 24 : 16}>{ds.field}</Col>
{!ds?.is_repeat_identifier && <Col span={6}>{ds.label}</Col>}
<Col span={ds?.is_repeat_identifier ? 24 : 18}>{ds.field}</Col>
</Row>
);
});
Expand Down

0 comments on commit 12253e8

Please # to comment.