2
I have the following doubt, I am with that const
export const STATUS = [{
0: 'Rascunho',
1: 'Enviado',
2: 'Processando',
9: 'Processado',
3: 'Agendado',
4: 'Protocolizado',
5: 'Suspenso',
6: 'Erro protocolo',
7: 'Erro processamento',
8: 'Erro leitura',
}];
and I am trying to access the values using the following method
public constantFormatter(params) {
const status = STATUS.filter((p) => p === params.value);
}
but it’s always returning empty and I’m not able to understand why, has anyone ever had the same problem ?