Skip to content

Commit 494bcee

Browse files
fix(request): reassign sequential orders when all signers share same signingOrder
The API returns signingOrder: 1 as the default for every signer. When the user enables "Sign in order", onPreserveOrderChange() checked Because git log -p === false, every signer was skipped and all remained at order 1, causing the backend to notify all signers simultaneously instead of sequentially. Fix: detect duplicate orders with a Set comparison and force re-assignment when duplicates are found. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent e312959 commit 494bcee

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/RightSidebar/RequestSignatureTab.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,8 +744,10 @@ export default {
744744
745745
if (value) {
746746
if (file?.signers) {
747+
const orders = file.signers.map(s => s.signingOrder || 0)
748+
const hasDuplicateOrders = orders.length !== new Set(orders).size
747749
file.signers.forEach((signer, index) => {
748-
if (!signer.signingOrder) {
750+
if (!signer.signingOrder || hasDuplicateOrders) {
749751
signer.signingOrder = index + 1
750752
}
751753
})

0 commit comments

Comments
 (0)