Skip to content

Commit 854d654

Browse files
author
bhavabhuthi
committed
fix: type issues
1 parent 52e08a0 commit 854d654

File tree

1 file changed

+6
-2
lines changed
  • app/[locale]/dashboard/organization/[organizationId]/dataset/[id]/edit/components

1 file changed

+6
-2
lines changed

app/[locale]/dashboard/organization/[organizationId]/dataset/[id]/edit/components/DistributionList.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { EditDistribution } from './EditDistribution';
2929
import { EditResource } from './EditResource';
3030
import { ResourceListView } from './ResourceListView';
3131

32-
export const getReourceDoc = graphql(`
32+
export const getReourceDoc: any = graphql(`
3333
query getResources($filters: DatasetFilter) {
3434
datasets(filters: $filters) {
3535
resources {
@@ -74,7 +74,11 @@ export function DistributionList({
7474
}) {
7575
const params = useParams();
7676

77-
const { data, isLoading, refetch } = useQuery(
77+
const {
78+
data,
79+
isLoading,
80+
refetch,
81+
}: { data: any; isLoading: boolean; refetch: any } = useQuery(
7882
[`fetch_resources_${params.id}`],
7983
() => GraphQL(getReourceDoc, { filters: { id: params.id } }),
8084
{

0 commit comments

Comments
 (0)