Skip to content
Snippets Groups Projects
Unverified Commit e527f51f authored by Aleksander Nicacio da Silva's avatar Aleksander Nicacio da Silva Committed by GitHub
Browse files

refactor: simplified canned response filter query (#29650)

parent 610f3e92
No related merge requests found
...@@ -67,10 +67,7 @@ const CannedResponsesTable = () => { ...@@ -67,10 +67,7 @@ const CannedResponsesTable = () => {
); );
const getCannedResponses = useEndpoint('GET', '/v1/canned-responses'); const getCannedResponses = useEndpoint('GET', '/v1/canned-responses');
const { data, isLoading, isSuccess, refetch } = useQuery( const { data, isLoading, isSuccess, refetch } = useQuery(['/v1/canned-responses', query], () => getCannedResponses(query));
['/v1/canned-responses', { debouncedText, sortDirection, itemsPerPage, current, sharing, createdBy }],
() => getCannedResponses(query),
);
const getTime = useFormatDateAndTime(); const getTime = useFormatDateAndTime();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment