open-learning-exchange/planet

View on GitHub
src/app/shared/dialogs/dialogs-images.component.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function uploadImage has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  uploadImage(event) {
    const file = event.target.files[0];

    const sanitizedFileName = file.name.trim().replace(/\s+/g, '_');
    const imageExists = this.images.some(img => sanitizedFileName === img.filename);
Severity: Minor
Found in src/app/shared/dialogs/dialogs-images.component.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status