Skip to content

Commit

Permalink
#0 | Quick fix to IdentifierUserAssginment user list to unblock testi…
Browse files Browse the repository at this point in the history
…ng of other cards
  • Loading branch information
1t5j0y committed Dec 11, 2024
1 parent c9fe3b1 commit 892d9ac
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/adminApp/IdentifierUserAssignment.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ export const IdentifierUserAssignmentDetail = props => {
};

export const UserSelectInput = props => {
const choices = props.choices.filter(
choice => choice.name != null && choice.organisationId != null
);
const choices = props.choices.filter(choice => choice.name != null && choice.organisationId != null);
return <AutocompleteInput {...props} choices={choices} optionText="name" />;
};

Expand All @@ -71,6 +69,7 @@ const IdentifierUserAssignmentForm = props => (
{({ formData, dispatch, ...rest }) => (
<Fragment>
<ReferenceInput
perPage={10}
source="userId"
reference="user"
label="Which user?"
Expand Down Expand Up @@ -104,11 +103,7 @@ const IdentifierUserAssignmentForm = props => (
</Fragment>
)}
</AvniFormDataConsumer>
<AvniTextInput
source="identifierStart"
required
toolTipKey={"ADMIN_IDENTIFIER_ASSIGNMENT_START"}
/>
<AvniTextInput source="identifierStart" required toolTipKey={"ADMIN_IDENTIFIER_ASSIGNMENT_START"} />
<AvniTextInput source="identifierEnd" required toolTipKey={"ADMIN_IDENTIFIER_ASSIGNMENT_END"} />
</SimpleForm>
);
Expand Down

0 comments on commit 892d9ac

Please sign in to comment.