set modal editor blocks with empty array when not defined
This commit is contained in:
parent
6962e6c0aa
commit
c3b6b61f82
|
@ -49,7 +49,7 @@ export default function reducer(
|
|||
...state,
|
||||
modalEditor: {
|
||||
...state.modalEditor,
|
||||
blocks: action.blocks,
|
||||
blocks: action.blocks || [],
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue