We need to trigger server component re-rendering for moving rows, just like we do for adding or deleting rows. Video of the issue: https://github.com/user-attachments/assets/32fb31c5-f304-4082-8028-59a6ad723fbe
23 lines
407 B
TypeScript
23 lines
407 B
TypeScript
import type { CollectionConfig } from 'payload'
|
|
|
|
export const LexicalInBlock: CollectionConfig = {
|
|
slug: 'LexicalInBlock',
|
|
fields: [
|
|
{
|
|
name: 'blocks',
|
|
type: 'blocks',
|
|
blocks: [
|
|
{
|
|
slug: 'lexicalInBlock2',
|
|
fields: [
|
|
{
|
|
name: 'lexical',
|
|
type: 'richText',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
],
|
|
}
|