diff --git a/x-pack/plugins/cases/public/components/actions/assignees/edit_assignees_selectable.test.tsx b/x-pack/plugins/cases/public/components/actions/assignees/edit_assignees_selectable.test.tsx index 60a19df11b04a..7ee2dc2796c28 100644 --- a/x-pack/plugins/cases/public/components/actions/assignees/edit_assignees_selectable.test.tsx +++ b/x-pack/plugins/cases/public/components/actions/assignees/edit_assignees_selectable.test.tsx @@ -460,4 +460,18 @@ describe('EditAssigneesSelectable', () => { ], }); }); + + it('renders even with no assignee set yet', async () => { + const selectedCases = [{ ...basicCase, assignees: [] }]; + const result = appMock.render( + + ); + + await waitFor(() => { + expect(result.getByTestId('cases-actions-assignees-edit-selectable')).toBeInTheDocument(); + }); + + expect(result.getByPlaceholderText('Find a user')).toBeInTheDocument(); + expect(result.getByText('Selected: 0')).toBeInTheDocument(); + }); }); diff --git a/x-pack/plugins/cases/public/components/actions/assignees/edit_assignees_selectable.tsx b/x-pack/plugins/cases/public/components/actions/assignees/edit_assignees_selectable.tsx index 0d4bd261647d1..52c9ab896f1cd 100644 --- a/x-pack/plugins/cases/public/components/actions/assignees/edit_assignees_selectable.tsx +++ b/x-pack/plugins/cases/public/components/actions/assignees/edit_assignees_selectable.tsx @@ -79,7 +79,7 @@ const EditAssigneesSelectableComponent: React.FC = ({ [selectedCases] ); - const { data, isLoading: isLoadingUserProfiles } = useBulkGetUserProfiles({ + const { data, isFetching: isLoadingUserProfiles } = useBulkGetUserProfiles({ uids: Array.from(assignees.values()), });