Nikatlas 5 rokov pred
rodič
commit
37d2941b01
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  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,