You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a node has a property of type integer which value is zero, then the property is not included in node.props by getSerializedNodes function.
To Reproduce
Steps to reproduce the behavior:
Imagine a node called myNode which has a property called myProp that stores a number.
Set te value of myProp as zero, like: setProp((p) => { p[myProp] = 0; })
Execute getSerializedNodes()
Check the properties of myNode in the result of getSerializedNodes.
The property myProp is not included.
Expected behavior
In the result of getSerializedNodes, the node myNode should include a prop called myProp which value is zero.
Your environment
Software
Version(s)
craft.js
0.1.0-beta.11
React
17.0.1
The text was updated successfully, but these errors were encountered:
Describe the bug
When a node has a property of type integer which value is zero, then the property is not included in
node.props
bygetSerializedNodes
function.To Reproduce
Steps to reproduce the behavior:
myNode
which has a property calledmyProp
that stores a number.myProp
as zero, like: setProp((p) => { p[myProp] = 0; })myNode
in the result of getSerializedNodes.myProp
is not included.Expected behavior
In the result of
getSerializedNodes
, the nodemyNode
should include a prop calledmyProp
which value is zero.Your environment
The text was updated successfully, but these errors were encountered: