Fix visibility not working on components

This commit is contained in:
thepaperpilot 2022-12-23 09:42:45 -06:00
parent 8367ef2099
commit eea9a6f0e8

View file

@ -1841,6 +1841,9 @@ const factory = createLayer(id, () => {
{Object.entries(FACTORY_COMPONENTS).map(value => { {Object.entries(FACTORY_COMPONENTS).map(value => {
const key = value[0] as FactoryCompNames; const key = value[0] as FactoryCompNames;
const item = value[1]; const item = value[1];
if (unref(item.visible) === false) {
return null;
}
return ( return (
<div class="comp"> <div class="comp">
<img <img