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,7 +20,10 @@ export function Contrasv2() {
20 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 28
     const options = {
26 29
         filterType: 'checkbox',
@@ -42,7 +45,7 @@ export function Contrasv2() {
42 45
                             <MUIDataTable
43 46
                                 sx={{ '& MuiPaper': { elevation: 0, boxShadow: 'none', color: "red" } }}
44 47
                                 title={"Contraseñas"}
45
-                                data={Build(result)}
48
+                                data={Build(data ? data.data : [])}
46 49
                                 columns={Encabezados}
47 50
                                 options={options}
48 51
                             />