fix: server-generated ID for base ID field is overriden on the client
This commit is contained in:
@@ -114,7 +114,7 @@ export function fieldReducer(state: FormState, action: FieldAction): FormState {
|
||||
const withNewRow = [...(state[path]?.rows || [])]
|
||||
|
||||
const newRow: Row = {
|
||||
id: new ObjectId().toHexString(),
|
||||
id: (subFieldState?.id.value as string) || new ObjectId().toHexString(),
|
||||
blockType: blockType || undefined,
|
||||
collapsed: false,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user