This doesn't solve the problem. As the component moves into a default node. All the configuration done in original component moved to default node.
For example:
Before target was done mistakenly, the content node structure would be:
/content/project/en_gb/test/jcr:content/mainParsys/mosaic (all configuration are saved under mosaic node)
After target was done mistakenly, the content node structure would change to:
/content/project/en_gb/test/jcr:content/mainParsys/mosaic/default (mosaic's node sling:resourceType would change to cq/personalization/components/target and all configurations would move to default node)
Solution:
- Move default node to /content/project/en_gb/test/jcr:content/mainParsys (one level up parallel to mosaic node)
- Delete mosaic node
- Rename default node to mosaic again