Skip to content

Commit 65a0dcd

Browse files
committed
fix adding classic preset before connecting to area
1 parent 195dc08 commit 65a0dcd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/presets/classic/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ export function setup<Schemes extends ClassicScheme, K extends AngularArea2D<Sch
3535

3636
return {
3737
attach(plugin) {
38+
if (!plugin.hasParent()) return
39+
3840
positionWatcher.attach(plugin.parentScope<AreaPlugin<Schemes, any>>(AreaPlugin))
3941
},
4042
update(context) {

0 commit comments

Comments
 (0)