Skip to content

Commit

Permalink
Merge pull request #3581 from LiteFarmOrg/LF-4558b-fix-calls-to-getSu…
Browse files Browse the repository at this point in the history
…pportedTaskTypesSet

LF-4558 Give second argument to getSupportedTaskTypes
  • Loading branch information
antsgar authored Dec 6, 2024
2 parents 6c79b38 + 971fe51 commit a0e2dc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/webapp/src/containers/Filter/Tasks/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const TasksFilterPage = ({ onGoBack }) => {
}, []);

const taskTypes = useMemo(() => {
const supportedTaskTypes = getSupportedTaskTypesSet(true);
const supportedTaskTypes = getSupportedTaskTypesSet(true, true);
let taskTypes = {};
for (const type of defaultTaskTypes) {
if (type.deleted === false && supportedTaskTypes.has(type.task_translation_key)) {
Expand Down
2 changes: 1 addition & 1 deletion packages/webapp/src/containers/Task/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default function TaskPage({ history }) {
};

const taskTypes = useMemo(() => {
const supportedTaskTypes = getSupportedTaskTypesSet(true);
const supportedTaskTypes = getSupportedTaskTypesSet(true, true);
const taskTypes = [];
for (const type of defaultTaskTypes) {
if (type.deleted === false && supportedTaskTypes.has(type.task_translation_key)) {
Expand Down

0 comments on commit a0e2dc3

Please sign in to comment.