code4romania / code4romania/website-factory

[Page edit] Can't remove a page's preview image

Open
#479 0 comments 0 reactions 1 assignee Claimed by @overeha View on GitHub
bug :bug:
Dominant language
PHP
Stars
26
Forks
18
Avg merge
1m
Merged PRs (30d)
14

Description

**Describe the bug**
Once a preview image is added to a page, the page can not be left with no image.

**To Reproduce**
Steps to reproduce the behavior:
1. Log in to the admin and go to create/edit a page
2. Add a preview image to the page (click on Attach) & save the page
3. Remove the preview image (click on the bin) & save the page
4. Refresh the page
5. Observe that the image is still there

**Expected behavior**
Once a page's preview image has been deleted, the image should not appear after a refresh.

**Screenshots**

Screenshot 2023-10-27 at 15 33 28

**Additional context**
When the page is shared, the preview appears there.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.