浏览代码

despliegue fast

amenpunk 3 年之前
父节点
当前提交
061d641079
共有 1 个文件被更改,包括 5 次插入2 次删除
  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
                             />