Skip to content

Instantly share code, notes, and snippets.

@andrewstevenson
Created September 11, 2016 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewstevenson/8d2b65b19d3fdd7680db4b27aad9a43d to your computer and use it in GitHub Desktop.
Save andrewstevenson/8d2b65b19d3fdd7680db4b27aad9a43d to your computer and use it in GitHub Desktop.
return pb.mapValues(
function(value)
for i, element in ipairs(value.elements) do
element.children = nil
element.id = i
element.parent = 0
end
return value
end
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment