Skip to content

Commit a2d5c6f

Browse files
committed
fix: fix outline-tree initialization failed
1 parent 28afa05 commit a2d5c6f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/plugin-outline-pane/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class OutlineMain implements ISensor, ITreeBoard, IScrollable {
6060
return false;
6161
}
6262
inited = true;
63-
const designer = await editor.onceGot(Designer);
63+
const designer = await editor.onceGot('designer');
6464
this.setupDesigner(designer);
6565
};
6666

packages/shell/src/component-meta.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,12 @@ export default class ComponentMeta {
117117
* @param parent
118118
* @returns
119119
*/
120-
checkNestingDown(my: Node | NodeData, target: NodeSchema | Node | NodeSchema[]) {
120+
checkNestingDown(my: Node | NodeData, target: NodeSchema | Node | NodeSchema[]) {
121121
const curNode = my.isNode ? my[nodeSymbol] : my;
122122
return this[componentMetaSymbol].checkNestingDown(curNode as any, target[nodeSymbol] || target);
123123
}
124+
125+
refreshMetadata() {
126+
this[componentMetaSymbol].refreshMetadata();
127+
}
124128
}

0 commit comments

Comments
 (0)