Krzysztof Krztoń 7 vuotta sitten
vanhempi
sitoutus
7a5f93d1c8
1 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  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.