hochschule-darmstadt-UAS / ddk-artbrowser

Exploring the world of arts using open data
http://openartbrowser.org/
MIT License
1 stars 1 forks source link

Reset thumbnail index in artwork component #95

Closed EeveesEyes closed 3 years ago

EeveesEyes commented 3 years ago

Describe the bug Navigation from one artwork to another doesn't reset the thumbnail index so the 2nd artwork component doesn't start at 0.

To Reproduce Steps to reproduce the behavior:

  1. Go to an artwork with multiple thumbnails.
  2. Switch thumbnails
  3. Click on related artwork with multiple thumbnails.
  4. See error / not first image is selected

Expected behavior The component should always start with the first image

Additional context Simply reset the index in ngOnInit