[Bug] New UI blocks are dropped after navigating to settings
Author: a-claytonCreated Sep 17, 2026Updated Sep 17, 2026
Describe the bug
- A new UI block is created for a 'tree collection'
- Fields are added to the UI block
- User navigates to Data sources
- On returning, the UI page is blank and the blocks have been deleted
Environment
- NocoBase version: v2.2.12
- Database type and version: PostgreSQL 16
- OS: Docker, via OrbStack on macOS Tahoe 26.5
- Deployment Methods: Docker
- Docker image version: latest
How To Reproduce
Follow the steps above or see screen recording.
Expected behavior
The new UI blocks should persist after the user moves away and returns to the page.
Screenshots
https://github.com/user-attachments/assets/5c694e74-df1f-4723-be8e-04f0de221480
Logs
Logs for the period of the screen recording:
{"level":"info","message":"request POST /api/flowModels:save","method":"POST","path":"/api/flowModels:save","req":{"header":{"x-role":"root","x-hostname":"user","x-timezone":"+10:00","x-locale":"en-US","x-authenticator":"basic","referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"60e36b1e-5571-4cc8-9e7b-14dd9651bd92","timestamp":"2026-09-17 18:32:15"}
{"level":"info","message":"request GET /api/t_vqwjast60tw:list?page=1&pageSize=20&tree=false","method":"GET","path":"/api/t_vqwjast60tw:list?page=1&pageSize=20&tree=false","req":{"header":{"x-role":"root","x-hostname":"user","x-timezone":"+10:00","x-locale":"en-US","x-authenticator":"basic","x-data-source":"main","referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"e20db4ce-5d7e-4d93-815c-7ce22b93dacc","timestamp":"2026-09-17 18:32:15"}
Executing (default): SELECT reltuples::BIGINT AS estimate
FROM pg_class c JOIN pg_namespace n ON c.relnamespace = n.oid
WHERE c.relname = 't_vqwjast60tw' AND n.nspname = 'public';
{"level":"info","message":"response /api/t_vqwjast60tw:list?page=1&pageSize=20&tree=false","method":"GET","path":"/api/t_vqwjast60tw:list?page=1&pageSize=20&tree=false","res":{"status":200},"action":{"actionName":"list","resourceName":"t_vqwjast60tw","params":{"page":"1","pageSize":"20","tree":"false","resourceName":"t_vqwjast60tw","actionName":"list","values":{}}},"userId":1,"username":"nocobase","status":200,"cost":18,"app":"main","reqId":"e20db4ce-5d7e-4d93-815c-7ce22b93dacc","bodySize":523,"timestamp":"2026-09-17 18:32:15"}
{"level":"info","message":"response /api/flowModels:save","method":"POST","path":"/api/flowModels:save","res":{"status":200},"action":{"actionName":"save","resourceName":"flowModels","params":{"resourceName":"flowModels","actionName":"save","values":{"uid":"3cdb14f62fd","use":"TableBlockModel","subModels":{"columns":[{"uid":"f42f1336638","use":"TableActionsColumnModel","parentId":"3cdb14f62fd","subKey":"columns","subType":"array","props":{},"stepParams":{},"sortIndex":0,"flowRegistry":{}}]},"stepParams":{"resourceSettings":{"init":{"dataSourceKey":"main","collectionName":"t_vqwjast60tw"}}},"parentId":"cd036b414ad","subKey":"items","subType":"array","props":{},"sortIndex":1,"flowRegistry":{}}}},"userId":1,"username":"nocobase","status":200,"cost":47,"app":"main","reqId":"60e36b1e-5571-4cc8-9e7b-14dd9651bd92","bodySize":22,"timestamp":"2026-09-17 18:32:15"}
{"level":"info","message":"request POST /api/users:updateTheme","method":"POST","path":"/api/users:updateTheme","req":{"header":{"x-role":"root","x-hostname":"user","x-timezone":"+10:00","x-locale":"en-US","x-authenticator":"basic","referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"e3000bbb-bd7b-470c-bf53-d8e26fe63777","timestamp":"2026-09-17 18:32:18"}
{"level":"info","message":"response /api/users:updateTheme","method":"POST","path":"/api/users:updateTheme","res":{"status":200},"action":{"actionName":"updateTheme","resourceName":"users","params":{"resourceName":"users","actionName":"updateTheme","values":{"themeId":2}}},"userId":1,"username":"nocobase","status":200,"cost":15,"app":"main","reqId":"e3000bbb-bd7b-470c-bf53-d8e26fe63777","bodySize":2,"timestamp":"2026-09-17 18:32:18"}
client disconnected CJbWlgzSeKsN9lyhzgs_e
{"level":"info","message":"request GET /api/app:getLang?locale=en-US","method":"GET","path":"/api/app:getLang?locale=en-US","req":{"header":{"x-role":"root","x-hostname":"user","x-timezone":"+10:00","x-locale":"en-US","x-authenticator":"basic","referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"21c950cb-15de-4063-89d7-c4fcaf9e8914","timestamp":"2026-09-17 18:32:18"}
{"level":"warn","message":"[Workflow pre-action]: collection \"app\" not found","extra":{},"meta":{},"module":"app","submodule":"getLang","method":"","app":"main","reqId":"21c950cb-15de-4063-89d7-c4fcaf9e8914","dataSourceKey":"main","timestamp":"2026-09-17 18:32:18"}
{"level":"info","message":"response /api/app:getLang?locale=en-US","method":"GET","path":"/api/app:getLang?locale=en-US","res":{"status":200},"action":{"actionName":"getLang","resourceName":"app","params":{"locale":"en-US","resourceName":"app","actionName":"getLang","values":{}}},"status":200,"cost":14,"app":"main","reqId":"21c950cb-15de-4063-89d7-c4fcaf9e8914","bodySize":568054,"timestamp":"2026-09-17 18:32:18"}
new client connected _bh7HUA7XoUq54ZYDMdpw
client tags: app#main
client tags: app#main,userId#1
{"level":"info","message":"request GET /api/pm:listEnabled","method":"GET","path":"/api/pm:listEnabled","req":{"header":{"x-role":"root","x-hostname":"user","x-timezone":"+10:00","x-locale":"en-US","x-authenticator":"basic","referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"e7ee0546-a057-4f07-9eb4-ad8d609b9f0b","timestamp":"2026-09-17 18:32:18"}
{"level":"warn","message":"[Workflow pre-action]: collection \"pm\" not found","extra":{},"meta":{},"module":"pm","submodule":"listEnabled","method":"","app":"main","reqId":"e7ee0546-a057-4f07-9eb4-ad8d609b9f0b","dataSourceKey":"main","timestamp":"2026-09-17 18:32:18"}
{"level":"info","message":"response /api/pm:listEnabled","method":"GET","path":"/api/pm:listEnabled","res":{"status":200},"action":{"actionName":"listEnabled","resourceName":"pm","params":{"resourceName":"pm","actionName":"listEnabled","values":{}}},"status":200,"cost":18,"app":"main","reqId":"e7ee0546-a057-4f07-9eb4-ad8d609b9f0b","bodySize":20675,"timestamp":"2026-09-17 18:32:18"}
{"level":"info","message":"request GET /api/auth:check","method":"GET","path":"/api/auth:check","req":{"header":{"x-role":"root","x-hostname":"user","x-timezone":"+10:00","x-locale":"en-US","x-authenticator":"basic","referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"777516c2-726b-4817-a9e7-ecef0e38a81a","timestamp":"2026-09-17 18:32:18"}
{"level":"warn","message":"[Workflow pre-action]: collection \"auth\" not found","extra":{},"meta":{},"module":"auth","submodule":"check","method":"","app":"main","reqId":"777516c2-726b-4817-a9e7-ecef0e38a81a","dataSourceKey":"main","timestamp":"2026-09-17 18:32:18"}
{"level":"info","message":"response /api/auth:check","method":"GET","path":"/api/auth:check","res":{"status":200},"action":{"actionName":"check","resourceName":"auth","params":{"resourceName":"auth","actionName":"check","values":{}}},"userId":1,"username":"nocobase","status":200,"cost":6,"app":"main","reqId":"777516c2-726b-4817-a9e7-ecef0e38a81a","bodySize":1814,"timestamp":"2026-09-17 18:32:18"}
{"level":"info","message":"request POST /api/auth:syncCookies","method":"POST","path":"/api/auth:syncCookies","req":{"header":{"x-role":"root","x-hostname":"user","x-timezone":"+10:00","x-locale":"en-US","x-authenticator":"basic","referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"ea86f4de-ccb1-40f7-8a3e-0a5669f20c73","timestamp":"2026-09-17 18:32:18"}
{"level":"warn","message":"[Workflow pre-action]: collection \"auth\" not found","extra":{},"meta":{},"module":"auth","submodule":"syncCookies","method":"","app":"main","reqId":"ea86f4de-ccb1-40f7-8a3e-0a5669f20c73","dataSourceKey":"main","timestamp":"2026-09-17 18:32:18"}
{"level":"info","message":"response /api/auth:syncCookies","method":"POST","path":"/api/auth:syncCookies","res":{"status":200},"action":{"actionName":"syncCookies","resourceName":"auth","params":{"resourceName":"auth","actionName":"syncCookies","values":{}}},"userId":1,"username":"nocobase","status":200,"cost":5,"app":"main","reqId":"ea86f4de-ccb1-40f7-8a3e-0a5669f20c73","bodySize":24,"timestamp":"2026-09-17 18:32:18"}
{"level":"info","message":"request GET /api/systemSettings:get","method":"GET","path":"/api/systemSettings:get","req":{"header":{"x-role":"root","x-hostname":"user","x-timezone":"+10:00","x-locale":"en-US","x-authenticator":"basic","referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"4ea5b877-84b1-4ea5-ba68-b9c8e5fca248","timestamp":"2026-09-17 18:32:18"}
{"level":"info","message":"request POST /api/aiEmployees:listByUser","method":"POST","path":"/api/aiEmployees:listByUser","req":{"header":{"x-role":"root","x-hostname":"user","x-timezone":"+10:00","x-locale":"en-US","x-authenticator":"basic","referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"b9b4395e-3548-4241-8882-54c0960cdee6","timestamp":"2026-09-17 18:32:18"}
{"level":"info","message":"request POST /api/aiConversations:unreadCounts","method":"POST","path":"/api/aiConversations:unreadCounts","req":{"header":{"x-role":"root","x-hostname":"user","x-timezone":"+10:00","x-locale":"en-US","x-authenticator":"basic","referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"432baff0-a7df-470a-b251-afe245d2e19f","timestamp":"2026-09-17 18:32:18"}
{"level":"info","message":"response /api/systemSettings:get","method":"GET","path":"/api/systemSettings:get","res":{"status":200},"action":{"actionName":"get","resourceName":"systemSettings","params":{"resourceName":"systemSettings","actionName":"get","values":{}}},"status":200,"cost":22,"app":"main","reqId":"4ea5b877-84b1-4ea5-ba68-b9c8e5fca248","bodySize":793,"timestamp":"2026-09-17 18:32:18"}
{"level":"info","message":"response /api/aiConversations:unreadCounts","method":"POST","path":"/api/aiConversations:unreadCounts","res":{"status":200},"action":{"actionName":"unreadCounts","resourceName":"aiConversations","params":{"resourceName":"aiConversations","actionName":"unreadCounts","values":{}}},"userId":1,"username":"nocobase","status":200,"cost":8,"app":"main","reqId":"432baff0-a7df-470a-b251-afe245d2e19f","bodySize":66,"timestamp":"2026-09-17 18:32:18"}
{"level":"info","message":"response /api/aiEmployees:listByUser","method":"POST","path":"/api/aiEmployees:listByUser","res":{"status":200},"action":{"actionName":"listByUser","resourceName":"aiEmployees","params":{"resourceName":"aiEmployees","actionName":"listByUser","values":{}}},"userId":1,"username":"nocobase","status":200,"cost":21,"app":"main","reqId":"b9b4395e-3548-4241-8882-54c0960cdee6","bodySize":6427,"timestamp":"2026-09-17 18:32:18"}
{"level":"info","message":"request GET /api/blockTemplates:list?filter[configured][$isTruly]=true&filter[type][$ne]=Mobile&paginate=false","method":"GET","path":"/api/blockTemplates:list?filter[configured][$isTruly]=true&filter[type][$ne]=Mobile&paginate=false","req":{"header":{"x-role":"root","x-hostname":"user","x-timezone":"+10:00","x-locale":"en-US","x-authenticator":"basic","referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"575ee1e0-9eaa-4f3c-9637-5cfb662b8855","timestamp":"2026-09-17 18:32:19"}
{"level":"info","message":"response /api/blockTemplates:list?filter[configured][$isTruly]=true&filter[type][$ne]=Mobile&paginate=false","method":"GET","path":"/api/blockTemplates:list?filter[configured][$isTruly]=true&filter[type][$ne]=Mobile&paginate=false","res":{"status":200},"action":{"actionName":"list","resourceName":"blockTemplates","params":{"filter":{"configured":{"$isTruly":"true"},"type":{"$ne":"Mobile"}},"paginate":"false","resourceName":"blockTemplates","actionName":"list","values":{}}},"userId":1,"username":"nocobase","status":200,"cost":5,"app":"main","reqId":"575ee1e0-9eaa-4f3c-9637-5cfb662b8855","bodySize":11,"timestamp":"2026-09-17 18:32:19"}
{"level":"info","message":"request GET /api/environmentVariables?paginate=false","method":"GET","path":"/api/environmentVariables?paginate=false","req":{"header":{"x-role":"root","x-hostname":"user","x-timezone":"+10:00","x-locale":"en-US","x-authenticator":"basic","referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"6849d3ea-2090-4945-ac65-c389842e5d57","timestamp":"2026-09-17 18:32:19"}
{"level":"info","message":"request GET /api/themeConfig:list?sort=id&paginate=false","method":"GET","path":"/api/themeConfig:list?sort=id&paginate=false","req":{"header":{"x-role":"root","x-hostname":"user","x-timezone":"+10:00","x-locale":"en-US","x-authenticator":"basic","referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"75f4462c-7e28-4e1f-b2fc-39174b2cb0d1","timestamp":"2026-09-17 18:32:19"}
{"level":"info","message":"response /api/environmentVariables?paginate=false","method":"GET","path":"/api/environmentVariables?paginate=false","res":{"status":200},"action":{"actionName":"list","resourceName":"environmentVariables","params":{"paginate":"false","resourceName":"environmentVariables","actionName":"list","values":{}}},"userId":1,"username":"nocobase","status":200,"cost":4,"app":"main","reqId":"6849d3ea-2090-4945-ac65-c389842e5d57","bodySize":36,"timestamp":"2026-09-17 18:32:19"}
{"level":"info","message":"request GET /api/roles:check","method":"GET","path":"/api/roles:check","req":{"header":{"x-role":"root","x-hostname":"user","x-timezone":"+10:00","x-locale":"en-US","x-authenticator":"basic","referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"a4cfa433-6449-43c8-a937-8eb39dad96c3","timestamp":"2026-09-17 18:32:19"}
{"level":"info","message":"response /api/themeConfig:list?sort=id&paginate=false","method":"GET","path":"/api/themeConfig:list?sort=id&paginate=false","res":{"status":200},"action":{"actionName":"list","resourceName":"themeConfig","params":{"sort":"id","paginate":"false","resourceName":"themeConfig","actionName":"list","values":{}}},"status":200,"cost":7,"app":"main","reqId":"75f4462c-7e28-4e1f-b2fc-39174b2cb0d1","bodySize":946,"timestamp":"2026-09-17 18:32:19"}
{"level":"info","message":"response /api/roles:check","method":"GET","path":"/api/roles:check","res":{"status":200},"action":{"actionName":"check","resourceName":"roles","params":{"resourceName":"roles","actionName":"check","values":{}}},"userId":1,"username":"nocobase","status":200,"cost":8,"app":"main","reqId":"a4cfa433-6449-43c8-a937-8eb39dad96c3","bodySize":554,"timestamp":"2026-09-17 18:32:19"}
{"level":"info","message":"request GET /api/desktopRoutes:listAccessible?tree=true&sort=sort&layout=admin-layout-model","method":"GET","path":"/api/desktopRoutes:listAccessible?tree=true&sort=sort&layout=admin-layout-model","req":{"header":{"x-role":"root","x-hostname":"user","x-timezone":"+10:00","x-locale":"en-US","x-authenticator":"basic","referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"894d99c3-8527-4751-8aea-d0e1440ac8ad","timestamp":"2026-09-17 18:32:19"}
{"level":"info","message":"response /api/desktopRoutes:listAccessible?tree=true&sort=sort&layout=admin-layout-model","method":"GET","path":"/api/desktopRoutes:listAccessible?tree=true&sort=sort&layout=admin-layout-model","res":{"status":200},"action":{"actionName":"listAccessible","resourceName":"desktopRoutes","params":{"tree":"true","sort":"sort","layout":"admin-layout-model","resourceName":"desktopRoutes","actionName":"listAccessible","values":{},"filter":{"uiLayouts.uid":"admin-layout-model"}}},"userId":1,"username":"nocobase","status":200,"cost":6,"app":"main","reqId":"894d99c3-8527-4751-8aea-d0e1440ac8ad","bodySize":2631,"timestamp":"2026-09-17 18:32:19"}
{"level":"info","message":"request GET /files/main/main/attachments/1.png","method":"GET","path":"/files/main/main/attachments/1.png","req":{"header":{"referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"45d19dd3-9583-49bd-bba2-e45a7aecc466","timestamp":"2026-09-17 18:32:19"}
{"level":"info","message":"response /files/main/main/attachments/1.png","method":"GET","path":"/files/main/main/attachments/1.png","res":{"status":302},"action":{"actionName":"getFile","resourceName":"attachments","params":{"filterByTk":"1","resourceName":"attachments","resourceIndex":"1","actionName":"getFile","values":{}}},"userId":1,"username":"nocobase","status":302,"cost":3,"app":"main","reqId":"45d19dd3-9583-49bd-bba2-e45a7aecc466","bodySize":59,"timestamp":"2026-09-17 18:32:19"}
{"level":"info","message":"request GET /api/asyncTasks:list?sort=-createdAt","method":"GET","path":"/api/asyncTasks:list?sort=-createdAt","req":{"header":{"x-role":"root","x-hostname":"user","x-timezone":"+10:00","x-locale":"en-US","x-authenticator":"basic","referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"671d8133-711c-4cab-9ff0-adba10f9ec26","timestamp":"2026-09-17 18:32:19"}
Executing (default): SELECT reltuples::BIGINT AS estimate
FROM pg_class c JOIN pg_namespace n ON c.relnamespace = n.oid
WHERE c.relname = 'asyncTasks' AND n.nspname = 'public';
{"level":"info","message":"request GET /api/uiSchemaTemplates:list?paginate=false","method":"GET","path":"/api/uiSchemaTemplates:list?paginate=false","req":{"header":{"x-role":"root","x-hostname":"user","x-timezone":"+10:00","x-locale":"en-US","x-authenticator":"basic","referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"26b5683c-3de0-4868-b0d8-2e75e05d97ab","timestamp":"2026-09-17 18:32:19"}
{"level":"info","message":"response /api/uiSchemaTemplates:list?paginate=false","method":"GET","path":"/api/uiSchemaTemplates:list?paginate=false","res":{"status":200},"action":{"actionName":"list","resourceName":"uiSchemaTemplates","params":{"paginate":"false","resourceName":"uiSchemaTemplates","actionName":"list","values":{}}},"userId":1,"username":"nocobase","status":200,"cost":7,"app":"main","reqId":"26b5683c-3de0-4868-b0d8-2e75e05d97ab","bodySize":11,"timestamp":"2026-09-17 18:32:19"}
{"level":"info","message":"request GET /api/auth:checkLegacyFileAccess","method":"GET","path":"/api/auth:checkLegacyFileAccess","req":{"header":{"referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"1c4ab287-94f2-4a27-af60-d68bbd47535f","timestamp":"2026-09-17 18:32:19"}
{"level":"warn","message":"[Workflow pre-action]: collection \"auth\" not found","extra":{},"meta":{},"module":"auth","submodule":"checkLegacyFileAccess","method":"","app":"main","reqId":"1c4ab287-94f2-4a27-af60-d68bbd47535f","dataSourceKey":"main","timestamp":"2026-09-17 18:32:19"}
{"level":"info","message":"response /api/auth:checkLegacyFileAccess","method":"GET","path":"/api/auth:checkLegacyFileAccess","res":{"status":204},"action":{"actionName":"checkLegacyFileAccess","resourceName":"auth","params":{"resourceName":"auth","actionName":"checkLegacyFileAccess","values":{}}},"userId":1,"username":"nocobase","status":204,"cost":2,"app":"main","reqId":"1c4ab287-94f2-4a27-af60-d68bbd47535f","timestamp":"2026-09-17 18:32:19"}
{"level":"info","message":"response /api/asyncTasks:list?sort=-createdAt","method":"GET","path":"/api/asyncTasks:list?sort=-createdAt","res":{"status":200},"action":{"actionName":"list","resourceName":"asyncTasks","params":{"sort":"-createdAt","resourceName":"asyncTasks","actionName":"list","values":{},"filter":{"createdById":1},"blacklist":["params"]}},"userId":1,"username":"nocobase","status":200,"cost":14,"app":"main","reqId":"671d8133-711c-4cab-9ff0-adba10f9ec26","bodySize":67,"timestamp":"2026-09-17 18:32:19"}
{"level":"info","message":"request GET /api/myInAppMessages:count?filter[status]=unread","method":"GET","path":"/api/myInAppMessages:count?filter[status]=unread","req":{"header":{"x-role":"root","x-hostname":"user","x-timezone":"+10:00","x-locale":"en-US","x-authenticator":"basic","referer":"http://user:13000/admin/2tfew4b8sxq"}},"app":"main","reqId":"068b8aac-ea58-44ef-8eb7-0ff641411d66","timestamp":"2026-09-17 18:32:19"}
{"level":"waSource: nocobase/nocobase