mirror of
https://github.com/excalidraw/excalidraw.git
synced 2026-11-29 00:29:42 +03:00
fix: An empty island would render if no subtypes were registered.
This commit is contained in:
1 parent
3aa1365acb
commit
f71ded4bf9
1 file changed
+4
@@ -144,6 +144,10 @@ export const SubtypeToggles = () => {
|
||||
});
|
||||
};
|
||||
|
||||
// Only render if one or more subtypes are registered
|
||||
if (getSubtypeNames().length === 0) {
|
||||
return <></>;
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<Island
|
||||
|
||||
Reference in new issue
Block a user