@@ -9,20 +9,14 @@ import { GraphQL } from '@/lib/api';
99import { EditResource } from './components/EditResource' ;
1010import { ResourceDropzone } from './components/ResourceDropzone' ;
1111import { ResourceListView } from './components/ResourceListView' ;
12- import { getReourceDoc } from './query' ;
12+ import { getResourceDoc } from './query' ;
1313
1414export interface TListItem {
1515 label : string ;
1616 value : string ;
1717 description : string ;
1818 dataset : any ;
1919 fileDetails : any ;
20- previewEnabled : boolean
21- previewDetails : {
22- startEntry : 0 ,
23- endEntry : 0 ,
24- isAllEntries : boolean
25- }
2620}
2721
2822export function DistibutionPage ( {
@@ -34,7 +28,7 @@ export function DistibutionPage({
3428 [ `fetch_resources_${ params . id } ` ] ,
3529 ( ) =>
3630 GraphQL (
37- getReourceDoc ,
31+ getResourceDoc ,
3832 {
3933 [ params . entityType ] : params . entitySlug ,
4034 } ,
@@ -54,12 +48,7 @@ export function DistibutionPage({
5448 description : item . description ,
5549 dataset : item . dataset ?. pk ,
5650 fileDetails : item . fileDetails ,
57- previewEnabled : item . previewEnabled ,
58- previewDetails : {
59- startEntry : item . previewDetails ?. startEntry ,
60- endEntry : item . previewDetails ?. endEntry ,
61- isAllEntries : item . previewDetails ?. isAllEntries
62- }
51+
6352 } ) ) ) ||
6453 [ ] ;
6554
@@ -78,7 +67,7 @@ export function DistibutionPage({
7867 { data && ResourceList . length > 0 ? (
7968 < >
8069 { resourceId ? (
81- < EditResource refetch = { refetch } list = { ResourceList } />
70+ < EditResource refetch = { refetch } allResources = { ResourceList } />
8271 ) : (
8372 < ResourceListView
8473 refetch = { refetch }
0 commit comments