🎨 prettier
This commit is contained in:
parent
e8c9fe86f2
commit
d6a5d65d88
@ -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>
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user