Turning showBody in collapsible container false not working in modules

I'm trying to set a collapsible container's showBody component to false (aka hide the body) when a select field is labeled No, and set it as true (aka show the body) when a select field is labeled Yes.

However, when I try to set it as false, I get an error in the console saying that showBody needs to be a boolean.

Since I do see the console.error log, I do know that the function is triggering.

But the default checkbox functionality for showBody isn't working when it's false it looks like.

Here's a better screenshot:

For whatever reason, upon refreshing the page, it now works as expected ... I'm not sure why this wasn't working before, but this can be closed.