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

intendeduse select to use is_active filter by default #541

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/form/FieldTypeIntendedUseSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const FieldTypeIntendedUseSelect = ({
const intendedUses = await fetchIntendedUses({
search: inputValue,
limit: 20,
service_unit: serviceUnit?.id || ""
service_unit: serviceUnit?.id || "",
is_active: "true"
});
callback(addEmptyOption(intendedUses.map((intendedUse) => getContentIntendedUse(intendedUse)).sort((a, b) => sortStringByKeyAsc(a, b, 'label'))));
}, 500);
Expand Down