mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-24 01:11:49 +00:00
Fix visibility not working on components
This commit is contained in:
parent
8367ef2099
commit
eea9a6f0e8
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue