mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
fix: block change serialization (#7400)
This commit is contained in:
@@ -205,7 +205,7 @@ export class BlockChange extends BlockBase {
|
||||
*/
|
||||
static getExtraBlockState_(block: BlockSvg): string {
|
||||
if (block.saveExtraState) {
|
||||
const state = block.saveExtraState(false);
|
||||
const state = block.saveExtraState(true);
|
||||
return state ? JSON.stringify(state) : '';
|
||||
} else if (block.mutationToDom) {
|
||||
const state = block.mutationToDom();
|
||||
|
||||
Reference in New Issue
Block a user