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 () => {
|
const fetchContacts = async () => {
|
||||||
try {
|
try {
|
||||||
const { data } = await api.get("contacts", {
|
const { data } = await api.get("contacts", {
|
||||||
params: { searchParam },
|
params: { searchParam, userId: user.id },
|
||||||
});
|
});
|
||||||
setOptions(data.contacts);
|
setOptions(data.contacts);
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
|
Loading…
Reference in New Issue