Nikatlas 5 жил өмнө
parent
commit
37d2941b01
1 өөрчлөгдсөн 3 нэмэгдсэн , 3 устгасан
  1. 3 3
      Tools/select.js

+ 3 - 3
Tools/select.js

@@ -55,9 +55,9 @@ export default class Select extends Tool{
 			selected: true
 		}
 		this.selectedNode = node;
-		let view = CS.Routing.getCurrentView();
-		console.log(view, CS.ViewSystem);
-		this.selectedNodeParent = CS.ViewSystem.views[view].getNode(CS.ViewSystem.views[view].getParent(node));
+		let viewName = CS.Routing.getCurrentView();
+		let View = CS.ViewSystem.getView(viewName);
+		this.selectedNodeParent = View.getParent(node);
 		console.log(this.selectedNodeParent)
 		this.selectedNodeParent.props = {
 			...this.selectedNodeParent.props,