Workaround for Plasmic Studio wrapping slots in extra components

I just made a little workaround for a problem I was facing and it is working fine so far, but I don’t know if that’s how I should be thinking about it.

I wanted to keep children as a slot, but Studio wraps slots in some extra components.
Thus I extract the text out of it before passing it down. Any reactions to this code?