Skip to content

Commit

Permalink
fix image display bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LeRoman committed Feb 6, 2025
1 parent 4b2c74b commit 96639f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/app/components/record/record.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ import { environment } from '../../../environments/environment';
})
export class RecordComponent {
constructor(private recordService: RecordService) {
if (environment.production) this.imageUrl = '165.232.75.90/';
this.imageUrl = `${environment.apiUrl}/`;
this.imageUrl = environment.production
? 'http://165.232.75.90/'
: `${environment.apiUrl}/`;
}
imageUrl: string = '';
deleteRecord(id: string) {
Expand Down

0 comments on commit 96639f8

Please sign in to comment.