File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/charts/components Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ const AddResourceChartImage: any = graphql(`
6565 }
6666` ) ;
6767
68- const AddResourceImage : any = graphql ( `
68+ const AddResourceChart : any = graphql ( `
6969 mutation GenerateResourceChart($resource: UUID!) {
7070 addResourceChart(resource: $resource) {
7171 __typename
@@ -207,13 +207,13 @@ const ChartsList: React.FC<ChartsListProps> = ({
207207 )
208208 ) ;
209209
210- const resourceChartImage : {
210+ const resourceChart : {
211211 mutate : any ;
212212 isLoading : any ;
213213 } = useMutation (
214214 ( data : { resource : UUID } ) =>
215215 GraphQL (
216- AddResourceImage ,
216+ AddResourceChart ,
217217 {
218218 [ params . entityType ] : params . entitySlug ,
219219 } ,
@@ -329,7 +329,7 @@ const ChartsList: React.FC<ChartsListProps> = ({
329329 < div className = "flex gap-3" >
330330 < Button
331331 onClick = { ( e ) =>
332- resourceChartImage . mutate ( {
332+ resourceChart . mutate ( {
333333 resource : resourceList . data . datasetResources [ 0 ] . id ,
334334 } )
335335 }
You can’t perform that action at this time.
0 commit comments