set modal editor blocks with empty array when not defined

This commit is contained in:
Damián Suárez 2023-12-05 17:38:28 -03:00
parent 6962e6c0aa
commit c3b6b61f82
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ export default function reducer(
...state,
modalEditor: {
...state.modalEditor,
blocks: action.blocks,
blocks: action.blocks || [],
},
};
}