Skip to content

Commit 0d5220a

Browse files
Merge pull request #504 from AgenceBio/fix/liste_parcellaire
fix: corrige l'entete vide en haut de la liste
2 parents c2b2953 + a325d5b commit 0d5220a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/stores/operator.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,16 @@ export const useOperatorStore = defineStore("operator", () => {
5050
acc[acc.length - 1].records.push(record);
5151
return acc;
5252
},
53-
[{ year: records.value[0].created_at.split("-")[0], records: [] }],
53+
[
54+
{
55+
year: (
56+
records.value[0].certification_date_debut ||
57+
records.value[0].audit_date ||
58+
records.value[0].created_at
59+
).split("-")[0],
60+
records: [],
61+
},
62+
],
5463
);
5564
});
5665

0 commit comments

Comments
 (0)