Closed LeandroMendesDS closed 3 years ago
Hi @LeandroMendesDS — could you please provide the props you’re providing to the <List/>
as text in a code block? That would help us reproduce your issue more quickly.
Sure ! But just heads im doing it dynamically.
I just inserted the methods used to achieve this logic , if you need the full component let me know
const fecthAllSign = async () => {
var fetchOptions = {
headers: {
Authorization: "Bearer ${userState.token}",
"Content-Type": "application/json",
},
};
try {
let { data } = await axios.get(
"${REACT_APP_API_DOMAIN}/api/DocumentList/DocumentsToSign/${userId}",
fetchOptions
);
var resultado = data.map((dados, indexNumber) => {
var RowObject = {
c1: dados.document.name,
c2: dados.status,
c3: dados.createdUtc,
c4: dados.dueDate,
actions: {
see: { title: "See", icon: "Edit" },
sign: { title: "Sign", icon: "Edit", multi: true },
},
};
return RowObject;
});
setResponse(resultado);
setRawData(data);
setBlockUI(false);
} catch (error: any) {
console.log("erro catch aqui");
console.log(error);
setBlockUI(false);
}
};
const listConfig: any = {
find: false,
filters: ["c2"],
emptySelectionActionGroups: {
},
selectable: true,
columns: {
c1: {
title: "Nome do documento",
sortable: "alphabetical",
},
c2: {
title: "Estado",
},
c3: {
title: "Data de criação",
},
c4: {
title: "Data Limite",
},
},
rows: response,
};
(....)
<List
{...listConfig}
onInteraction={(dados) => ListActionHandler(dados)}
/>
Since im waiting for the result of the api , this is a sample of the result that the variable response will be filled
{
"find": false,
"emptySelectionActionGroups": {},
"selectable": true,
"columns": {
"c1": {
"title": "Nome do documento",
"sortable": "alphabetical"
},
"c2": {
"title": "Estado"
},
"c3": {
"title": "Data de criação"
},
"c4": {
"title": "Data Limite"
}
},
"rows": [{
"c1": "E0600DJZI9.pdf",
"c2": "PREPARADO",
"c3": "31/03/2021",
"c4": "2021-04-08",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "trrtr.PDF",
"c2": "PREPARADO",
"c3": "31/03/2021",
"c4": "2021-05-08",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "yupu.PDF",
"c2": "PREPARADO",
"c3": "31/03/2021",
"c4": "2021-04-06",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "teste.PDF",
"c2": "PREPARADO",
"c3": "31/03/2021",
"c4": "2021-04-08",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "teste.PDF",
"c2": "PREPARADO",
"c3": "31/03/2021",
"c4": "4/15/2021 12:00:00 AM",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A Sample PDF.pdf",
"c2": "PREPARADO",
"c3": "31/03/2021",
"c4": "21-04-15",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "teste.PDF",
"c2": "PREPARADO",
"c3": "31/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "sample.pdf",
"c2": "PREPARADO",
"c3": "30/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "sample.pdf",
"c2": "PREPARADO",
"c3": "30/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "sample.pdf",
"c2": "PREPARADO",
"c3": "29/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "sample.pdf",
"c2": "PREPARADO",
"c3": "29/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A17_FlightPlan.pdf",
"c2": "PREPARADO",
"c3": "29/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A17_FlightPlan.pdf",
"c2": "PREPARADO",
"c3": "29/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A17_FlightPlan.pdf",
"c2": "PREPARADO",
"c3": "29/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A17_FlightPlan.pdf",
"c2": "PREPARADO",
"c3": "29/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A17_FlightPlan.pdf",
"c2": "PREPARADO",
"c3": "29/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A17_FlightPlan.pdf",
"c2": "PREPARADO",
"c3": "26/03/2021",
"c4": "2021-03-30",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A17_FlightPlan.pdf",
"c2": "PREPARADO",
"c3": "26/03/2021",
"c4": "2021-03-27",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "DevScope PDF signed.pdf",
"c2": "PREPARADO",
"c3": "25/03/2021",
"c4": "2021-03-25",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "DevScope PDF.pdf",
"c2": "PREPARADO",
"c3": "25/03/2021",
"c4": "2021-03-30",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "DevScope PDF.pdf",
"c2": "PREPARADO",
"c3": "25/03/2021",
"c4": "2021-03-25",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "DevScope PDF.pdf",
"c2": "PREPARADO",
"c3": "25/03/2021",
"c4": "2021-03-25",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "sample.pdf",
"c2": "PREPARADO",
"c3": "24/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "insights - portal.pdf",
"c2": "PREPARADO",
"c3": "24/03/2021",
"c4": "2021-03-30",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "insights - portal.pdf",
"c2": "PREPARADO",
"c3": "24/03/2021",
"c4": "2021-03-30",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A17_FlightPlan.pdf",
"c2": "PREPARADO",
"c3": "24/03/2021",
"c4": "2021-03-30",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "testedelete (4).PDF",
"c2": "PREPARADO",
"c3": "22/03/2021",
"c4": "2021-03-24",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "20/04/2021",
"c4": "2021-04-23",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "testedelete (4).PDF",
"c2": "PREPARADO",
"c3": "19/03/2021",
"c4": "2021-03-25",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "testedelete (4).PDF",
"c2": "PREPARADO",
"c3": "19/03/2021",
"c4": "2021-03-25",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A Sample PDF.pdf",
"c2": "PREPARADO",
"c3": "19/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A Sample PDF.pdf",
"c2": "PREPARADO",
"c3": "19/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A Sample PDF.pdf",
"c2": "PREPARADO",
"c3": "19/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A Sample PDF.pdf",
"c2": "PREPARADO",
"c3": "19/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A Sample PDF.pdf",
"c2": "PREPARADO",
"c3": "19/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A Sample PDF.pdf",
"c2": "PREPARADO",
"c3": "18/03/2021",
"c4": "2021-03-25",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "16/04/2021",
"c4": "2021-04-22",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A Sample PDF.pdf",
"c2": "PREPARADO",
"c3": "16/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A Sample PDF.pdf",
"c2": "PREPARADO",
"c3": "16/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A Sample PDF.pdf",
"c2": "PREPARADO",
"c3": "16/03/2021",
"c4": "2021-03-31",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "14/04/2021",
"c4": "2021-04-29",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "14/04/2021",
"c4": "2021-04-14",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "13/04/2021",
"c4": "2021-04-13",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "13/04/2021",
"c4": "2021-04-28",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "13/04/2021",
"c4": "2021-04-21",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "13/04/2021",
"c4": "2021-04-29",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "13/04/2021",
"c4": "2021-04-29",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "13/04/2021",
"c4": "2021-04-14",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "12/04/2021",
"c4": "2021-04-12",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "12/04/2021",
"c4": "2021-04-29",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "12/04/2021",
"c4": "2021-04-22",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "12/04/2021",
"c4": "2021-04-12",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "12/04/2021",
"c4": "2021-04-12",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "09/04/2021",
"c4": "2021-04-30",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "09/04/2021",
"c4": "2021-04-09",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "09/04/2021",
"c4": "2021-04-22",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "08/04/2021",
"c4": "2021-04-08",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "Basic-Non-Disclosure-Agreement.pdf",
"c2": "PREPARADO",
"c3": "08/04/2021",
"c4": "2021-05-08",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "08/04/2021",
"c4": "2021-04-28",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "Basic-Non-Disclosure-Agreement.pdf",
"c2": "PREPARADO",
"c3": "07/04/2021",
"c4": "2021-05-08",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "E0600DJZI9.pdf",
"c2": "PREPARADO",
"c3": "07/04/2021",
"c4": "2021-05-08",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "07/04/2021",
"c4": "2021-04-29",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "E0600DJZI9.pdf",
"c2": "PREPARADO",
"c3": "06/04/2021",
"c4": "2021-04-14",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "sample.pdf",
"c2": "PREPARADO",
"c3": "05/04/2021",
"c4": "2021-04-23",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A17_FlightPlan.pdf",
"c2": "PREPARADO",
"c3": "05/04/2021",
"c4": "2021-04-29",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A17_FlightPlan.pdf",
"c2": "PREPARADO",
"c3": "05/04/2021",
"c4": "2021-04-29",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "sample.pdf",
"c2": "PREPARADO",
"c3": "05/04/2021",
"c4": "2021-04-30",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "dummyTeste.pdf",
"c2": "PREPARADO",
"c3": "05/04/2021",
"c4": "2021-04-21",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "sample.pdf",
"c2": "PREPARADO",
"c3": "05/04/2021",
"c4": "2021-04-21",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "sample.pdf",
"c2": "PREPARADO",
"c3": "05/04/2021",
"c4": "2021-04-29",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "A17_FlightPlan.pdf",
"c2": "PREPARADO",
"c3": "05/04/2021",
"c4": "2021-04-29",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "E0600DJZI9.pdf",
"c2": "PREPARADO",
"c3": "01/04/2021",
"c4": "2021-05-08",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
},
{
"c1": "E0600DJZI9.pdf",
"c2": "PREPARADO",
"c3": "01/04/2021",
"c4": "2021-05-06",
"actions": {
"see": {
"title": "See",
"icon": "Edit"
},
"sign": {
"title": "Sign",
"icon": "Edit",
"multi": true
}
}
}
]
}
Seems related to this https://github.com/microsoft/fluentui/issues/16192
I see. This might be resolved by our upgrade to Fluent UI v0.54 in #69 if that's true. I'll also double-check these props in main
and in that PR to confirm.
Updating react Northstar and UI Kit fixed the problem for me.
Reproduction
When using a List component with the indicated colummns key in the filter prop. Clicking the filter results in 3 different errors.
Where im clicking:
My props:
Errors: 1.
2.
3.