From 58b7c5dd307d4faac64691d29e72687adbc4be44 Mon Sep 17 00:00:00 2001 From: Junyi Date: Thu, 5 Jan 2023 16:12:11 +0800 Subject: [PATCH] fix(plugin-sequence-field): integer generated should not less then start (#1330) --- .../plugins/sequence-field/src/server/fields/sequence-field.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/sequence-field/src/server/fields/sequence-field.ts b/packages/plugins/sequence-field/src/server/fields/sequence-field.ts index d5fc17ee9..4e431b549 100644 --- a/packages/plugins/sequence-field/src/server/fields/sequence-field.ts +++ b/packages/plugins/sequence-field/src/server/fields/sequence-field.ts @@ -58,7 +58,7 @@ sequencePatterns.register('integer', { let next; if (lastSeq && lastSeq.get('current') != null) { - next = lastSeq.get('current') + 1; + next = Math.max(lastSeq.get('current') + 1, start); // cycle as cron string if (cycle) {