Skip to content

Commit

Permalink
Bilderfehler
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar73a committed Jan 8, 2024
1 parent 492b33c commit 07dc96b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/models/EventItem.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default interface EventItem {
id: string;
name: string;
bild: string;
bild: any;
beschreinung: string;
adresse: string;
ort: string;
Expand Down
2 changes: 1 addition & 1 deletion src/services/event.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const eventService = {
resultList.push({
id: partialRecord.id,
name: partialRecord.get('Name') as string,
bild: partialRecord.get('Bild') as string,
bild: partialRecord.get('Bild') as any,
beschreinung: partialRecord.get('Beschreibung') as string,
adresse: partialRecord.get('Adresse') as string,
ort: partialRecord.get('Ort') as string,
Expand Down
2 changes: 1 addition & 1 deletion src/stores/eventItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const useEventItemStore = defineStore('event', {
getById: (state) => (id: string) =>
state.eventItemList.find((event: EventItem) => event.id === id),
imageById: (state) => (id: string) => {
const item = state.eventItemList.find((verleih: EventItem) => verleih.id === id)
const item = state.eventItemList.find((event: EventItem) => event.id === id)
if (item && item.bild) {
return item.bild[0].thumbnails.large.url
} else {
Expand Down

0 comments on commit 07dc96b

Please sign in to comment.