From eea9a6f0e8e579b8c0fe96f65e55b8025f906a39 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Fri, 23 Dec 2022 09:42:45 -0600 Subject: [PATCH] Fix visibility not working on components --- src/data/layers/factory.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/data/layers/factory.tsx b/src/data/layers/factory.tsx index d234204..bd47fef 100644 --- a/src/data/layers/factory.tsx +++ b/src/data/layers/factory.tsx @@ -1841,6 +1841,9 @@ const factory = createLayer(id, () => { {Object.entries(FACTORY_COMPONENTS).map(value => { const key = value[0] as FactoryCompNames; const item = value[1]; + if (unref(item.visible) === false) { + return null; + } return (