mirror of
https://github.com/outbackdingo/openapi-ui.git
synced 2026-01-27 18:19:50 +00:00
fix circular render
This commit is contained in:
@@ -50,7 +50,7 @@ export const Factory: FC<TFactoryProps> = ({ setSidebarTags }) => {
|
||||
|
||||
useEffect(() => {
|
||||
setSidebarTags(spec?.sidebarTags || [])
|
||||
})
|
||||
}, [spec?.sidebarTags, setSidebarTags])
|
||||
|
||||
if (!spec) {
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user