🎨 prettier

This commit is contained in:
itskovacs 2025-11-11 19:28:49 +01:00
parent e8c9fe86f2
commit d6a5d65d88
4 changed files with 35 additions and 35 deletions

View File

@ -12,8 +12,8 @@
<circle r="20" cy="50" cx="50"></circle>
</svg>
} @else {
<p-button icon="pi pi-sparkles" variant="text" [disabled]="!placeForm.get('name')!.value" pTooltip="Complete using GMaps API"
(click)="gmapsSearchText()" />
<p-button icon="pi pi-sparkles" variant="text" [disabled]="!placeForm.get('name')!.value"
pTooltip="Complete using GMaps API" (click)="gmapsSearchText()" />
}
</div>
</div>

View File

@ -213,12 +213,12 @@ export class PlaceCreateModalComponent {
this.gmapsLoading = false;
if (r.category) {
this.categories$?.pipe(take(1)).subscribe({
next: categories => {
const category: Category | undefined = categories.find(c => c.name == r.category);
next: (categories) => {
const category: Category | undefined = categories.find((c) => c.name == r.category);
if (!category) return;
this.placeForm.get('category')?.setValue(category.id);
}
})
},
});
}
}
@ -235,7 +235,7 @@ export class PlaceCreateModalComponent {
}
if (results.length == 1) {
this.gmapsToForm(results[0])
this.gmapsToForm(results[0]);
return;
}

View File

@ -54,7 +54,7 @@ export const Interceptor = (req: HttpRequest<unknown>, next: HttpHandlerFn): Obs
const errDetails = ERROR_CONFIG[err.status];
if (errDetails) {
console.error(err);
let msg = ""
let msg = '';
msg = err.message || errDetails.detail;
if (!Array.isArray(err.error?.detail)) {
msg = err.error.detail;