Skip to content

Pods Item List block; unfinished SQL statements (still typing) crashes block, no immediate fix. #7207

@oldrup

Description

@oldrup

Description

I'm transitioning from Pods shortcodes to the Gutenberg blocks, enjoying how I can actually see the content within the editor.

However, the rendered block in the editor “crashes” when the parameters for the block aren't completely valid. That is a problem, as the block editor attempts to render the Pods block output while still typing the parameters.

Screenshot 1 - the Pods Item List returns some items, fine.

image

Screenshot 2 - after starting to type t.post_title ASC in the Order By

image

I think that affects all the SQL parameters but I specifically experienced it on the limit, where and order by.

The only resort is to exit the editor and cancel saving.

Is that something you can reproduce?

Version

3.0.7

Testing Instructions

No response

Screenshots / Screencast

No response

Possible Workaround

Can be worked around by coping and pasting in a finished where or order by clause from another text editor.

Site Health Information

No response

Pods Package

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions