Skip to content

[MWPW-195871] Fix: Speaker image update and delete not reflecting in table#158

Merged
sharmeebuilds merged 1 commit into
devfrom
fix/speaker-img-delete
May 20, 2026
Merged

[MWPW-195871] Fix: Speaker image update and delete not reflecting in table#158
sharmeebuilds merged 1 commit into
devfrom
fix/speaker-img-delete

Conversation

@sharmeebuilds
Copy link
Copy Markdown
Collaborator

Resolves: https://jira.corp.adobe.com/browse/MWPW-195871

After saving a new image the table showed the stale photo because handleFormSubmit called apiService directly, bypassing cachedApi and its cache-invalidation logic. Removing an image also had no effect because no DELETE was ever sent to ESP.

  • Use cachedApi.updateSpeaker/createSpeaker so the series cache is invalidated before loadSpeakers re-fetches
  • Track removedImageId in SpeakerFormDialog and pass it to the parent; handleFormSubmit now calls deleteSpeakerImage when a saved image is removed

After saving a new image the table showed the stale photo because
handleFormSubmit called apiService directly, bypassing cachedApi and
its cache-invalidation logic. Removing an image also had no effect
because no DELETE was ever sent to ESP.

- Use cachedApi.updateSpeaker/createSpeaker so the series cache is
  invalidated before loadSpeakers re-fetches
- Track removedImageId in SpeakerFormDialog and pass it to the parent;
  handleFormSubmit now calls deleteSpeakerImage when a saved image is removed

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sharmeebuilds sharmeebuilds merged commit 0d38019 into dev May 20, 2026
3 checks passed
@qiyundai qiyundai mentioned this pull request May 29, 2026
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants