diff --git a/src/components/block/index.ts b/src/components/block/index.ts index 36c4aa2ae..8432ed3de 100644 --- a/src/components/block/index.ts +++ b/src/components/block/index.ts @@ -552,7 +552,11 @@ export default class Block extends EventsDispatcher { .forEach(([name, tune]) => { if (_.isFunction(tune.save)) { try { - tunesData[name] = tune.save(); + const tuneData = tune.save() as BlockTuneData | undefined; + + if (tuneData !== undefined) { + tunesData[name] = tuneData; + } } catch (e) { _.log(`Tune ${tune.constructor.name} save method throws an Error %o`, 'warn', e); }