[Bug] Comment Edit action appears in normal v2 table and crashes
* Describe the bug
In a Modern Page (v2) table, the row Actions menu shows two different Edit options.
The normal/top Edit works correctly.
The lower toggle-style Edit, shown near Delete and Quote reply, causes a runtime error when used on a normal table row:
TypeError: e.setEditing is not a function
The failing flow is editRecordComment, which suggests a comment-specific action is being exposed in a normal table context.
* Environment
- NocoBase version: 2.2.12
- Database type and version: PostgreSQL 16
- OS: macOS
- Deployment Methods: Docker
- Docker image version: nocobase/nocobase:latest-full
- NodeJS version: N/A / Docker image
* How To Reproduce
- Create a Modern Page (v2).
- Add a normal Table block, for example using the built-in
Userscollection. - Add an Actions column.
- Open the available row actions.
- Select the lower toggle-style
Edit. - Click Edit on a row.
The action fails with:
TypeError: e.setEditing is not a function
and the console references:
flow 'editRecordComment'
Expected behavior
Comment-specific Edit actions should not appear for normal table rows, or should not execute editRecordComment outside a comment context.
The normal/top Edit action works correctly.
Screenshots
Attached:
- Screenshot showing the two
Editoptions. The upper one works, the lower one doesn't.
- Screenshot showing the console error if you use the lower "Toggle Style" Edit
Logs
Browser console:
TypeError: e.setEditing is not a function
BaseModel.applyFlow: Error executing step 'edit' in flow 'editRecordComment'
Source: nocobase/nocobase