mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: An empty island would render if no subtypes were registered.
This commit is contained in:
parent
3aa1365acb
commit
f71ded4bf9
1 changed files with 4 additions and 0 deletions
|
@ -144,6 +144,10 @@ export const SubtypeToggles = () => {
|
|||
});
|
||||
};
|
||||
|
||||
// Only render if one or more subtypes are registered
|
||||
if (getSubtypeNames().length === 0) {
|
||||
return <></>;
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<Island
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue