Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Resolve issues and improve code quality in AnnotateComponent #2

Open
wants to merge 2 commits into
base: legacy
Choose a base branch
from

Conversation

Swapnilden
Copy link

  • Removed unused imports and corrected styleUrl property
  • Refactored onSelectAnnotation and onFileChange methods for clarity
  • Added error handling in the query method for fetch errors
  • Extracted conditions into meaningful variables for readability
  • Removed standalone property from @component decorator
  • Defined type explicitly for annotations array
  • Updated baseUrl handling for better security
  • Improved error handling in search method when doc.annotation is null

- Removed unused imports and corrected styleUrl property
- Refactored onSelectAnnotation and onFileChange methods for clarity
- Added error handling in the query method for fetch errors
- Extracted conditions into meaningful variables for readability
- Removed standalone property from @component decorator
- Defined type explicitly for annotations array
- Updated baseUrl handling for better security
- Improved error handling in search method when doc.annotation is null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant