Browse Source

despliegue fast

amenpunk 2 years ago
parent
commit
061d641079
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/Pages/ContrasV2.jsx

+ 5 - 2
src/Pages/ContrasV2.jsx

20
         return await rest.getQuery(token.current)
20
         return await rest.getQuery(token.current)
21
     }
21
     }
22
 
22
 
23
-    const { data : { data : result} } = useQuery('passwords', getAllPwd );
23
+    // const { data : { data : result} } = useQuery('passwords', getAllPwd );
24
+    const { data  } = useQuery('passwords', getAllPwd );
25
+    console.log('data>>', data)
26
+
24
 
27
 
25
     const options = {
28
     const options = {
26
         filterType: 'checkbox',
29
         filterType: 'checkbox',
42
                             <MUIDataTable
45
                             <MUIDataTable
43
                                 sx={{ '& MuiPaper': { elevation: 0, boxShadow: 'none', color: "red" } }}
46
                                 sx={{ '& MuiPaper': { elevation: 0, boxShadow: 'none', color: "red" } }}
44
                                 title={"Contraseñas"}
47
                                 title={"Contraseñas"}
45
-                                data={Build(result)}
48
+                                data={Build(data ? data.data : [])}
46
                                 columns={Encabezados}
49
                                 columns={Encabezados}
47
                                 options={options}
50
                                 options={options}
48
                             />
51
                             />