When the document contains only a background non-layer and that object is duplicated then the result does not contain the ID of the duplicated layer. In that case, we just call updateCurrentDocument instead of trying to call addLayers.
When the document contains only a background non-layer and that object is duplicated then the result does not contain the ID of the duplicated layer. In that case, we just call updateCurrentDocument instead of trying to call addLayers.

adobe-photoshop/spaces-design,lxfschr/spaces-design,adobe-photoshop/spaces-design,lxfschr/spaces-design