Skip to content

Commit

Permalink
[Upd #168] Removed unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LaChope committed Jun 10, 2024
1 parent 74873e1 commit d8ae69e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/components/record/RecordTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ FilterablePhaseHeader.propTypes = {
onFilterChange: PropTypes.func,
};

// TODO: Change `filters.phase` to filters.`template` when backend is ready
const FilterableTemplateHeader = ({ filters, onFilterChange }) => {
const { i18n } = useI18n();
return (
Expand Down
4 changes: 1 addition & 3 deletions src/components/record/filter/TemplateFilter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ const TemplateFilter = ({ value, onChange }) => {
options={options}
multi={true}
renderAsTree={false}
onChange={
(o) => onChange({ formTemplate: o.map((o) => o["@id"]) }, {}) // this is probably not correct
}
onChange={(o) => onChange({ formTemplate: o.map((o) => o["@id"]) }, {})}
value={selected}
placeholder={i18n("select.placeholder")}
isClearable={false}
Expand Down

0 comments on commit d8ae69e

Please sign in to comment.