We are using Graphic.clone().
const leftGraphic = originalGraphic.clone();
Since the upgrade to 4.33 the layer attribute of the cloned object is null (not undefined) while the layer is set correctly for the original graphic.
Prior to the update the clone also contained a valid layer.
This leads to problems when doing applyEdits on the clones without layer information.
Since it worked before, I assume this is a bug. Can anyone confirm that or show me further info about that? The 4.33 docs only say that clone is doing a deep copy of the graphic. So no hint the layer may is excluded.
Only the fact that the layer is set to null instead of undefined let me imagine this may be intended for some reason.
My workaround is to set the layer manually:
const leftGraphic = originalGraphic.clone();
leftGraphic.layer = originalGraphic.layer;