Skip to content

Commit

Permalink
refactor: simplified canned response filter query (RocketChat#29650)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandernsilva authored Jun 26, 2023
1 parent 610f3e9 commit e527f51
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ const CannedResponsesTable = () => {
);

const getCannedResponses = useEndpoint('GET', '/v1/canned-responses');
const { data, isLoading, isSuccess, refetch } = useQuery(
['/v1/canned-responses', { debouncedText, sortDirection, itemsPerPage, current, sharing, createdBy }],
() => getCannedResponses(query),
);
const { data, isLoading, isSuccess, refetch } = useQuery(['/v1/canned-responses', query], () => getCannedResponses(query));

const getTime = useFormatDateAndTime();

Expand Down

0 comments on commit e527f51

Please sign in to comment.