|
|
@@ -20,7 +20,10 @@ export function Contrasv2() {
|
|
|
return await rest.getQuery(token.current)
|
|
|
}
|
|
|
|
|
|
- const { data : { data : result} } = useQuery('passwords', getAllPwd );
|
|
|
+ // const { data : { data : result} } = useQuery('passwords', getAllPwd );
|
|
|
+ const { data } = useQuery('passwords', getAllPwd );
|
|
|
+ console.log('data>>', data)
|
|
|
+
|
|
|
|
|
|
const options = {
|
|
|
filterType: 'checkbox',
|
|
|
@@ -42,7 +45,7 @@ export function Contrasv2() {
|
|
|
<MUIDataTable
|
|
|
sx={{ '& MuiPaper': { elevation: 0, boxShadow: 'none', color: "red" } }}
|
|
|
title={"Contraseñas"}
|
|
|
- data={Build(result)}
|
|
|
+ data={Build(data ? data.data : [])}
|
|
|
columns={Encabezados}
|
|
|
options={options}
|
|
|
/>
|