Skip to content

Commit

Permalink
fix: issue with jstree node cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian ALEXANDRE committed Oct 14, 2019
1 parent 85fe466 commit 25852d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/menu-manager/components/ContentTreeView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default class ContentTreeView extends PureComponent {
const nodes = []
for (let i = 0, j = data.data.nodes.length; i < j; i++) {
const node = data.data.origin ? data.data.origin.get_node(data.data.nodes[i]) : data.data.nodes[i]
const newNode = Object.assign({}, node)
const newNode = JSON.parse(JSON.stringify(node))
newNode.state.loaded = true
newNode.children = []
newNode.children_d = []
Expand Down

0 comments on commit 25852d8

Please sign in to comment.