about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/compose/containers/compose_form_container.js
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-04-11 17:07:06 +0200
committerThibG <thib@sitedethib.com>2019-04-26 22:38:03 +0200
commit3a671470ec53edad206d9022e8796a1f6d3e92fd (patch)
treea0ebced2ef6a7a6d229a0407543174632ba2b47f /app/javascript/flavours/glitch/features/compose/containers/compose_form_container.js
parent1c0402c1038ca5fe85689b38ad44921e5aff9149 (diff)
Refactor selectComposeSuggestion so that different paths can be updated
Diffstat (limited to 'app/javascript/flavours/glitch/features/compose/containers/compose_form_container.js')
-rw-r--r--app/javascript/flavours/glitch/features/compose/containers/compose_form_container.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/compose/containers/compose_form_container.js b/app/javascript/flavours/glitch/features/compose/containers/compose_form_container.js
index 5458e0919..780a10f81 100644
--- a/app/javascript/flavours/glitch/features/compose/containers/compose_form_container.js
+++ b/app/javascript/flavours/glitch/features/compose/containers/compose_form_container.js
@@ -91,7 +91,7 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
   },
 
   onSuggestionSelected(position, token, suggestion) {
-    dispatch(selectComposeSuggestion(position, token, suggestion));
+    dispatch(selectComposeSuggestion(position, token, suggestion, ['text']));
   },
 
   onChangeSpoilerText(text) {