Skip to content

fix: correct emit event name to camelCase#434

Open
MuraariK13052008 wants to merge 1 commit intohatnote:masterfrom
MuraariK13052008:fix/bug-05-emit-camel-case
Open

fix: correct emit event name to camelCase#434
MuraariK13052008 wants to merge 1 commit intohatnote:masterfrom
MuraariK13052008:fix/bug-05-emit-camel-case

Conversation

@MuraariK13052008
Copy link
Copy Markdown

@MuraariK13052008 MuraariK13052008 commented Mar 27, 2026

What this fixes

After successfully creating a new round, the campaign view never refreshed automatically. Users had to manually reload the page to see the newly created round.

Root cause

defineEmits on line 233 of RoundNew.vue declares 'reloadCampaignState' (camelCase). The parent component ViewCampaign.vue listens with @reloadCampaignState. However all three emit call-sites (lines 384, 426, 431) used emit('reload-campaign-state') (kebab-case). Vue 3 does not automatically match kebab-case emit names to camelCase listener declarations, so the parent listener never fired.

Fix

Changed all three emit call-sites from emit('reload-campaign-state')emit('reloadCampaignState').

Files changed

  • frontend/src/components/Round/RoundNew.vue

How to verify

  1. Open any campaign
  2. Create a new round and submit the form
  3. Confirm the campaign view now automatically refreshes and shows the new round without a manual page reload

Relates to: T415578

Vue emits use camelCase internally. Updated event name
to reloadCampaignState to match expected listener.
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.

1 participant