mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-07 17:47:17 +02:00
fix: An empty island would render if no subtypes were registered.
This commit is contained in:
@@ -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