mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
feat: add types for accessing icons. (#7132)
* feat: add types for accessing icons. * chore: PR comments
This commit is contained in:
@@ -219,7 +219,7 @@ function saveIcons(block: Block, state: State, doFullSerialization: boolean) {
|
||||
for (const icon of block.getIcons()) {
|
||||
if (isSerializable(icon)) {
|
||||
const state = icon.saveState(doFullSerialization);
|
||||
if (state) icons[icon.getType()] = state;
|
||||
if (state) icons[icon.getType().toString()] = state;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user