mirror of
https://github.com/codex-team/editor.js
synced 2026-03-16 15:45:47 +01:00
Small upd
This commit is contained in:
parent
3078e753f2
commit
b1dcd3872d
3 changed files with 3 additions and 4 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -38,7 +38,6 @@ module.exports = (function (saver) {
|
|||
|
||||
for(let index = 0; index < blocks.length; index++) {
|
||||
|
||||
/** Add node to sequence at specified index */
|
||||
data.push(getBlockData(blocks[index]));
|
||||
|
||||
}
|
||||
|
|
@ -112,7 +111,7 @@ module.exports = (function (saver) {
|
|||
*/
|
||||
let validateBlockData = function ({data, pluginName}) {
|
||||
|
||||
if (!data && !pluginName) {
|
||||
if (!data || !pluginName) {
|
||||
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue