Fix bug with the layer parameter
Fix bug with the layer parameter: a task in lifesci-single-cell-spatial-swe-envs-nocap (Harbor dataset). Title: Fix bug with the layer parameter
The task
**Title:** Fix bug with the layer parameter
Part of scalingX/lifesci-single-cell-spatial-swe-envs-nocap.