|
@@ -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,
|