Skip to content

Commit

Permalink
fix(decoders): periods not read correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexcited committed Aug 26, 2024
1 parent 7006c4e commit 80841d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decoders/tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const decodeTab = (tab: any, instancePeriods: Period[]): Tab => {
const find = (id: string) => instancePeriods.find((p2) => p2.id === id);

const defaultPeriod = tab.periodeParDefaut && find(tab.periodeParDefaut.V.N);
const periods = tab.listePeriodes.V.map((p1: any) => find(p1)).filter(Boolean);
const periods = tab.listePeriodes.V.map((p1: any) => find(p1.N)).filter(Boolean);

return {
defaultPeriod,
Expand Down

0 comments on commit 80841d1

Please sign in to comment.