fix circular render

This commit is contained in:
typescreep
2025-07-17 22:22:07 +03:00
parent e13c860585
commit fb23e8d64a

View File

@@ -50,7 +50,7 @@ export const Factory: FC<TFactoryProps> = ({ setSidebarTags }) => {
useEffect(() => {
setSidebarTags(spec?.sidebarTags || [])
})
}, [spec?.sidebarTags, setSidebarTags])
if (!spec) {
return null