Skip to content

Images on presentations are not persisted after editing

Summary

Child issue of #739. After an image has been added to a custom slide, going back to the editing page deletes the image. There is no indication of the previously uploaded image on the editing page and the image must be uploaded again.

Steps to reproduce

  1. Edit a presentation of a lab and add a custom slide with an image.
  2. Save the result and go back to the edit page.
  3. Make unrelated changes and save again
  4. Present the presentation, the image input is now erased.

Current behaviour

An image is not visible on a custom slide after a presentation is edited a second time. Both on the present view and on the edit presentation view

Expected behaviour

The added image is visible and modifiable on the edit presentation page.

Screenshots

Here, the previously added image is not visible and will be removed once changes are saved. Screenshot_2025-09-05_at_23.14.20

Possible Fix

Modify editLabPresentation on LabController to persist the images. Add an indication of previously added images on the edit presentation page.