fix: An empty island would render if no subtypes were registered.
This commit is contained in:
parent
3aa1365acb
commit
f71ded4bf9
@ -144,6 +144,10 @@ export const SubtypeToggles = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Only render if one or more subtypes are registered
|
||||||
|
if (getSubtypeNames().length === 0) {
|
||||||
|
return <></>;
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Island
|
<Island
|
||||||
|
Loading…
x
Reference in New Issue
Block a user