File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/charts/components Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ const getResourceChartImageDetails: any = graphql(`
4040 }
4141` ) ;
4242
43-
4443const getDatasetResourceChartImageDetails : any = graphql ( `
4544 query resourceChartImages($datasetId: UUID!) {
4645 datasetResourceCharts(datasetId: $datasetId) {
@@ -55,9 +54,6 @@ const getDatasetResourceChartImageDetails: any = graphql(`
5554 }
5655` ) ;
5756
58-
59-
60-
6157const AddResourceChartimage : any = graphql ( `
6258 mutation GenerateResourceChartimage($dataset: UUID!) {
6359 addResourceChartImage(dataset: $dataset) {
@@ -71,16 +67,18 @@ const AddResourceChartimage: any = graphql(`
7167` ) ;
7268
7369const UpdateChartImageMutation : any = graphql ( `
74- mutation updateChartImage($data : ResourceChartImageInputPartial!) {
75- updateResourceChartImage(data : $data ) {
70+ mutation updateChartImage($input : ResourceChartImageInputPartial!) {
71+ updateResourceChartImage(input : $input ) {
7672 __typename
73+ ... on TypeResourceChartImage {{}
7774 id
7875 name
7976 description
8077 image {
8178 name
8279 path
8380 }
81+ }
8482 }
8583 }
8684` ) ;
@@ -126,7 +124,7 @@ const ChartsImage: React.FC<ImageProps> = ({
126124 [ params . entityType ] : params . entitySlug ,
127125 } ,
128126 {
129- datasetId : params . id
127+ datasetId : params . id ,
130128 }
131129 ) ,
132130 { }
You can’t perform that action at this time.
0 commit comments