I'm facing a dilemma, I have a constant defined as
export const STATUS = [{
0: 'Draft',
1: 'Sent',
2: 'Processing',
9: 'Processed',
3: 'Scheduled',
4: 'Filed',
5: 'Suspended',
6: 'Protocol Error',
7: 'Processing Error',
8: 'Reading Error',
}];
and I've been trying to retrieve the values using this method
public constantFormatter(params) {
const status = STATUS.filter((p) => p === params.value);
}
but it keeps returning empty, and I can't figure out why. Has anyone else encountered this issue?