Skip to content

Commit

Permalink
fix(docgen): address code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rustam-e committed Jan 24, 2025
1 parent 279c0cc commit a8f41b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/elements/content-sidebar/DocGenSidebar/DocGenSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ const DocGenSidebar = ({ getDocGenTags }: Props) => {


const loadTags = useCallback(async (attempts = 10) => {
console.log({attempts})
if(attempts <= 0){
setIsLoading(false);
return
}
setIsLoading(true);
Expand Down Expand Up @@ -124,7 +124,6 @@ const DocGenSidebar = ({ getDocGenTags }: Props) => {
}
} catch (error) {
setHasError(true);
setIsLoading(false);
}
// disabling eslint because the getDocGenTags prop is changing very frequently
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down

0 comments on commit a8f41b7

Please sign in to comment.