feat: Update contact search in ticket section to include userId for displaying contacts by queue
parent
96a7e23ee6
commit
7bc957df77
|
@ -45,7 +45,7 @@ const NewTicketModal = ({ modalOpen, onClose }) => {
|
|||
const fetchContacts = async () => {
|
||||
try {
|
||||
const { data } = await api.get("contacts", {
|
||||
params: { searchParam },
|
||||
params: { searchParam, userId: user.id },
|
||||
});
|
||||
setOptions(data.contacts);
|
||||
setLoading(false);
|
||||
|
|
Loading…
Reference in New Issue