Skip to content

The Open Source DocuSign Alternative.

🐛 order recipient by id to avoid order change in ui on reload

Timur Ercandc333a5fc872
diff --git a/packages/lib/query/getDocument.ts b/packages/lib/query/getDocument.ts
index 9e61ae8ea..db658794c 100644
--- a/packages/lib/query/getDocument.ts
+++ b/packages/lib/query/getDocument.ts
@@ -18,7 +18,11 @@ export const getDocument = async (
userId: user.id,
},
include: {
- Recipient: true,
+ Recipient: {
+ orderBy: {
+ id: "asc",
+ },
+ },
Field: { include: { Recipient: true, Signature: true } },
},
});