Open Lymanli opened 5 hours ago
Bot detected the issue body's language is not English, translate it automatically.
Title: 🐛 [Bug]: When creating a new block in the editor, do not select ‘Block Classification’. After editing and saving, the newly saved block cannot be viewed in the ‘Block Management’ of the editor.
Environment
edge 130,win10 22H2,node 18.20.3
Version
node 18.20.3,MySQL 8.4.0
Version
当前使用的提交历史版本 8507b656833732d86265948ff366a0d392f21cd2
Link to minimal reproduction
切换区块管理,点击新建区块,填入区块名称、区块id后,点击确定
拖动文本组件,修改文本显示内容,点击保存按钮
提示新建区块成功
数据库中已有新区块Test11Comp
Step to reproduce
刷新页面,重新加载区块信息,无刚刚保存的Test11Comp区块
新建区块Test12Comp
编辑保存Test12Comp
刷新页面重新请求区块数据后,能看到新建的Test12Comp
What is expected
如果区块分类不是必填,希望新建区块时,填入区块名称、区块id后,点确定后编辑的区块,在保存后可以在区块管理中显示。 如果区块分类是必填,希望新建区块没有填入区块分类时,提示必填区块分类。
What is actually happening
新建区块时不选择区块分类,保存存入数据库后,不能在区块管理中显示。
What is your project name
tiny-engine
Any additional comments (optional)
No response