Skip to content

[Dynamic Form] Cannot read properties of undefined (reading 'sections') #1788

Closed
@wuxiaojun514

Description

@wuxiaojun514

Category

[ ] Enhancement

[x] Bug

[ ] Question

Version

Please specify what version of the library you are using: [ 3.17 ]

Observed Behavior

It will show "Cannot read properties of undefined (reading 'sections')" error when you use [Dynamic Form] on a list which has empty ClientFormCustomFormatter
image

Steps to Reproduce

  1. Prepare a test list and click "Config Layout"
    image
  2. Paste some view formatting json code ,then remove it (Sometimes you want to try "Custom Formatting" first before using Dynamic Form, so you may have empty ClientFormCustomFormatter)
    image
  3. Using Dynamic Form Control on this list, then you will get "Cannot read properties of undefined (reading 'sections')" error

My Temp Solution

I cannot remove ClientFormCustomFormatter in the UI. I used PnP Powershell to remove this property
image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions