| 40 | } |
| 41 | |
| 42 | export const addComponentToLayout = payload => (dispatch, getState) => { |
| 43 | const {paths} = getState(); |
| 44 | dispatch(insertComponent(payload)); |
| 45 | dispatch( |
| 46 | setPaths(computePaths(payload.component, payload.componentPath, paths)) |
| 47 | ); |
| 48 | }; |
| 49 | |
| 50 | export const dispatchError = dispatch => (message, lines) => |
| 51 | dispatch( |
no test coverage detected
searching dependent graphs…