Skip to content

Commit

Permalink
Fix(acl.ts): lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
polegkashti committed Oct 26, 2024
1 parent d447acf commit 7ea9092
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions frontend/src/lib/hooks/api/acl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,23 @@ import {
KafkaAcl,
} from 'generated-sources';

export function useAcls({ clusterName, search }: {
clusterName: ClusterName;
search?: string;
export function useAcls({
clusterName,
search,
}: {
clusterName: ClusterName;
search?: string;
}) {
return useQuery(
['clusters', clusterName, 'acls', { search }],
() => api.listAcls({
() =>
api.listAcls({
clusterName,
search
}),
search,
}),
{
keepPreviousData: true,
suspense: false,
keepPreviousData: true,
suspense: false,
}
);
}
Expand Down

0 comments on commit 7ea9092

Please sign in to comment.