8
0
Эх сурвалжийг харах

Removed outdated comment – there's always a default value now.

Piotrek Koszuliński 9 жил өмнө
parent
commit
905a4ef10c

+ 1 - 4
packages/ckeditor5-heading/src/headingcommand.js

@@ -142,10 +142,7 @@ export default class HeadingCommand extends Command {
 		const block = findTopmostBlock( position );
 		const block = findTopmostBlock( position );
 
 
 		if ( block ) {
 		if ( block ) {
-			const format = this._getFormatById( block.name );
-
-			// TODO: What should happen if format is not found?
-			this.value = format;
+			this.value = this._getFormatById( block.name );
 		}
 		}
 	}
 	}
 }
 }