Skip to content

Commit

Permalink
FIX: incorrect interpolation was limiting to 1 dispatch / component (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux committed Sep 29, 2021
1 parent a1745e0 commit fc432a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/assets/javascripts/discourse/app/lib/plugin-api.js
Expand Up @@ -1461,7 +1461,8 @@ class PluginApi {
this.modifyClass(
`component:${mountedComponent}`,
{
pluginId: `#{mountedComponent}/#{widgetKey}/#{appEvent}`,
pluginId: `${mountedComponent}/${widgetKey}/${appEvent}`,

didInsertElement() {
this._super();
this.dispatch(appEvent, widgetKey);
Expand Down

0 comments on commit fc432a9

Please sign in to comment.