Krzysztof Krztoń %!s(int64=7) %!d(string=hai) anos
pai
achega
7a5f93d1c8
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      packages/ckeditor5-table/src/converters/upcasttable.js

+ 1 - 3
packages/ckeditor5-table/src/converters/upcasttable.js

@@ -182,9 +182,7 @@ function scanTable( viewTable ) {
 
 			// There might be some extra empty text nodes between the `tr`s.
 			// Make sure further code operates on `tr`s only. (#145)
-			const trs = Array.from( tableChild.getChildren() ).filter( el => {
-				return el.is( 'element', 'tr' );
-			} );
+			const trs = Array.from( tableChild.getChildren() ).filter( el => el.is( 'element', 'tr' ) );
 
 			for ( const tr of trs ) {
 				// This <tr> is a child of a first <thead> element.