summaryrefslogtreecommitdiff
path: root/animism-align/frontend/views/align/align.actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'animism-align/frontend/views/align/align.actions.js')
-rw-r--r--animism-align/frontend/views/align/align.actions.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/animism-align/frontend/views/align/align.actions.js b/animism-align/frontend/views/align/align.actions.js
index 6d01fc0..2ace824 100644
--- a/animism-align/frontend/views/align/align.actions.js
+++ b/animism-align/frontend/views/align/align.actions.js
@@ -28,9 +28,11 @@ export const setCursor = cursor_ts => dispatch => (
export const setSelectedAnnotation = annotation => dispatch => {
dispatch({ type: types.align.set_selected_annotation, data: annotation })
+ debouncedUpdateAnnotation.flush()
}
export const clearSelectedAnnotation = () => dispatch => {
- dispatch({ type: types.align.clear_selected_annotation, })
+ dispatch({ type: types.align.clear_selected_annotation })
+ debouncedUpdateAnnotation.flush()
}
export const updateSelectedAnnotation = annotation => dispatch => {
dispatch({ type: types.align.set_selected_annotation, data: { ...annotation } })