Skip to content

Wrong custom schedule index causing frontend glitch (show cover image missing) #320

@gammaw

Description

@gammaw

Root cause:

// TODO fix the correct index
this.customPosition = this.customScheduleDay >= this.getToday ? this.customScheduleDay - this.getToday : (7 - this.getToday) + this.customScheduleDay

Index probably not being computed correctly which causes regular FullItem be rendered instead og Custom, see:

<div v-if="customPosition === index">
<ScheduleCustom :show="show" />
</div>
<div v-else>
<ScheduleFullitem :show="show" />
</div>

As a result, the image URL is not found, as it is only in arcsi and not in CMS (custom schedule), see:

Rendered:

<img :src="show.cover_image_url" :alt="show.name">

Should render:

<img :src="show.image" :alt="show.name">

Quick fix (done): cover_image_url column is temporary added and filled with the image URL in the CMS custom schedule data structure

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions