feat: Update contact search in ticket section to include userId for displaying contacts by queue

feat-scaling-ticket-remote-creation
adriano 2024-05-07 15:23:19 -03:00
parent 96a7e23ee6
commit 7bc957df77
1 changed files with 1 additions and 1 deletions

View File

@ -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);