From 7bc957df777e18dee24bf49edb09ab61eb809b88 Mon Sep 17 00:00:00 2001 From: adriano Date: Tue, 7 May 2024 15:23:19 -0300 Subject: [PATCH] feat: Update contact search in ticket section to include userId for displaying contacts by queue --- frontend/src/components/NewTicketModal/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/NewTicketModal/index.js b/frontend/src/components/NewTicketModal/index.js index 4ff67f7..0851294 100644 --- a/frontend/src/components/NewTicketModal/index.js +++ b/frontend/src/components/NewTicketModal/index.js @@ -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);