Skip to content

Commit

Permalink
(feat) Maintain form order according to cfg settings (#90)
Browse files Browse the repository at this point in the history
Maintain form order according to cfg settings
  • Loading branch information
icrc-psousa authored Jan 15, 2025
1 parent 470a092 commit c6a42b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/forms-page/FormsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ const FormsPage = () => {
let rows = [];
if (category && cleanRows && cleanRows.length) {
const uuids = category.forms?.map((form) => form.formUUID);
rows = cleanRows.filter((row) => uuids.includes(row.uuid));
rows = cleanRows
.filter((row) => uuids.includes(row.uuid))
.sort((a, b) => uuids.indexOf(a.uuid) - uuids.indexOf(b.uuid));
}
return { ...{ name, rows } };
});
Expand Down

0 comments on commit c6a42b2

Please sign in to comment.