File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
app/[locale]/dashboard/[entityType]/[entitySlug]/charts/components Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -206,12 +206,12 @@ const ChartsImage: React.FC<ImageProps> = ({
206206
207207 const onDrop = React . useCallback (
208208 ( _dropFiles : File [ ] , acceptedFiles : File [ ] ) => {
209- mutate ( {
210- data : {
211- id : imageId ,
212- image : acceptedFiles [ 0 ] ,
213- } ,
214- } ) ;
209+ // mutate({
210+ // data: {
211+ // id: imageId,
212+ // image: acceptedFiles[0],
213+ // },
214+ // });
215215 {
216216 refetch ( ) ;
217217 listrefetch ( ) ;
@@ -224,13 +224,13 @@ const ChartsImage: React.FC<ImageProps> = ({
224224 if ( JSON . stringify ( formData ) !== JSON . stringify ( previousFormData ) ) {
225225 setPreviousFormData ( updatedData ) ;
226226
227- mutate ( {
228- data : {
229- id : imageId ,
230- name : updatedData . name ,
231- description : updatedData . description ,
232- } ,
233- } ) ;
227+ // mutate({
228+ // data: {
229+ // id: imageId,
230+ // name: updatedData.name,
231+ // description: updatedData.description,
232+ // },
233+ // });
234234 }
235235 } ;
236236
You can’t perform that action at this time.
0 commit comments