blob: b1038ea376eb89ff104097cc76aa7f37f5c724ef (
plain)
1
2
3
4
5
6
7
8
9
10
|
import * as types from 'app/types'
import { store, history, dispatch } from 'app/store'
import { buildParagraphs } from 'app/utils/transcript.utils'
export const buildAllParagraphs = () => dispatch => {
const state = store.getState()
const annotationOrder = state.annotation.index.order
const paragraphs = buildParagraphs(annotationOrder)
dispatch({ type: types.paragraph.update_transcript, paragraphs })
}
|