Skip to content

Commit

Permalink
fix:可视化编辑器弹窗中多选了组件,面板异常 (baidu#9542)
Browse files Browse the repository at this point in the history
Co-authored-by: hezhihang <hezhihang@baidu.com>
  • Loading branch information
hzh11012 and hezhihang committed Jan 30, 2024
1 parent fc3396b commit 8e7ceae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/amis-editor-core/src/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,8 @@ export class EditorManager {
let id = curRendererId || this.store.activeId;
let panels: Array<BasicPanelItem> = [];

if (!id && this.store?.schema) {
id = this.store?.schema.$$id; // 默认使用根节点id
if (!id && this.store?.filteredSchema) {
id = this.store?.filteredSchema.$$id; // 默认使用根节点id
}

if (id || this.store.selections.length) {
Expand Down

0 comments on commit 8e7ceae

Please sign in to comment.