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 @@ -82,7 +82,7 @@ const ChartsList: React.FC<ChartsListProps> = ({
8282 isLoading,
8383 refetch,
8484 } : { data : any ; isLoading : boolean ; refetch : any } = useQuery (
85- [ `chartDetails_${ params . id } ` ] ,
85+ [ `chartDetails_${ params . id } ` , type ] ,
8686 ( ) =>
8787 GraphQL (
8888 chartDetailsQuery ,
@@ -98,7 +98,7 @@ const ChartsList: React.FC<ChartsListProps> = ({
9898 const [ filteredRows , setFilteredRows ] = useState < any [ ] > ( [ ] ) ;
9999
100100 useEffect ( ( ) => {
101- refetch ( ) ;
101+ // refetch();
102102 if ( data ?. getChartData ) {
103103 setFilteredRows ( data . getChartData ) ;
104104 }
@@ -160,7 +160,7 @@ const ChartsList: React.FC<ChartsListProps> = ({
160160 ) ,
161161 {
162162 onSuccess : ( res : any ) => {
163- toast ( 'Resource Chart Image Created Successfully' ) ;
163+ toast ( 'Resource ChartImage Created Successfully' ) ;
164164 refetch ( ) ;
165165 setType ( 'img' ) ;
166166 setImageId ( res . addResourceChartImage . id ) ;
@@ -274,7 +274,7 @@ const ChartsList: React.FC<ChartsListProps> = ({
274274 resourceChartImageMutation . mutate ( { dataset : params . id } )
275275 }
276276 >
277- Add Image
277+ Add ChartImage
278278 </ Button >
279279 </ div >
280280 </ div >
You can’t perform that action at this time.
0 commit comments