src/app/shared/dialogs/dialogs-images.component.ts
Function uploadImage
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);