# 无法通过 Objects 设置编辑器添加侧边栏

**URL:** <https://meta.discourse.org/t/cannot-add-sidebar-via-objects-setting-editor/395567>\
**Category:** Bug\
**Tags:** tags, topic-list-sidebars\
**Created:** [2026年二月9日 16:31 UTC](https://meta.discourse.org/t/cannot-add-sidebar-via-objects-setting-editor/395567 "2026-02-09T16:31:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [2026年二月9日 19:18 UTC](https://meta.discourse.org/t/cannot-add-sidebar-via-objects-setting-editor/395567/2 "2026-02-09T19:18:53Z")

</div>

感谢您详尽的报告，这使得追踪问题容易多了。这需要在 Discourse 中进行修复，您的站点下次更新时应该会收到此修复。

> <https://github.com/discourse/discourse/pull/37643>
>
> Reported here: https://meta.discourse.org/t/cannot-add-sidebar-via-objects-setti…ng-editor/395567
> 
> Objects were getting passed instead of strings, and \`SchemaSettingsObjectValidator\` expects an array of strings, not an array of objects. The fix is similar to what we do for categories here: https://github.com/discourse/discourse/blob/cb379b8605ad61353482f1d7eb554ed9282ac81c/frontend/discourse/admin/components/schema-setting/types/categories.gjs#L28-L33

---

_[View the full topic](https://meta.discourse.org/t/cannot-add-sidebar-via-objects-setting-editor/395567)._
