Преглед изворни кода

Internal: Improved code coverage.

Marek Lewandowski пре 5 година
родитељ
комит
9670fa5038
1 измењених фајлова са 1 додато и 3 уклоњено
  1. 1 3
      packages/ckeditor5-table/src/commands/removerowcommand.js

+ 1 - 3
packages/ckeditor5-table/src/commands/removerowcommand.js

@@ -67,9 +67,7 @@ export default class RemoveRowCommand extends Command {
 				cellToFocus = getCellToFocus( table, removedRowIndex, columnToFocus );
 			}
 
-			if ( cellToFocus ) {
-				writer.setSelection( writer.createPositionAt( cellToFocus, 0 ) );
-			}
+			writer.setSelection( writer.createPositionAt( cellToFocus, 0 ) );
 		} );
 	}