Revision 32da02c5
Added by Oleh Fedorenko over 2 years ago
webpack/assets/javascripts/react_app/components/Editor/EditorActions.js | ||
---|---|---|
selectHosts,
|
||
} from './EditorSelectors';
|
||
|
||
import { parseDocs } from './EditorHelpers';
|
||
|
||
export const initializeEditor = initializeData => dispatch => {
|
||
const {
|
||
template,
|
||
... | ... | |
isRendering,
|
||
previewResult,
|
||
showError,
|
||
dslCache,
|
||
} = initializeData;
|
||
|
||
const initialState = {};
|
||
... | ... | |
if (isRendering) initialState.isRendering = false;
|
||
if (previewResult !== '') initialState.previewResult = '';
|
||
if (showError) initialState.showError = false;
|
||
parseDocs(dslCache);
|
||
dispatch({
|
||
type: EDITOR_INITIALIZE,
|
||
payload: initialState,
|
Also available in: Unified diff
Revert "Fixes #32035 - Add DSL autocompletion in templates"
This reverts commit bde7047acb8a68a899f60585f751093c9713bb92.