Przeglądaj źródła

Internal: Variable name adjusted.

Marek Lewandowski 5 lat temu
rodzic
commit
90d81bb5ee

+ 2 - 2
packages/ckeditor5-table/src/commands/removerowcommand.js

@@ -37,9 +37,9 @@ export default class RemoveRowCommand extends Command {
 			const tableRowCount = this.editor.plugins.get( 'TableUtils' ).getRows( table );
 			const lastRowIndex = tableRowCount - 1;
 
-			const removedRowIndexes = getRowIndexes( selectedCells );
+			const selectedRowIndexes = getRowIndexes( selectedCells );
 
-			const areAllRowsSelected = removedRowIndexes.first === 0 && removedRowIndexes.last === lastRowIndex;
+			const areAllRowsSelected = selectedRowIndexes.first === 0 && selectedRowIndexes.last === lastRowIndex;
 
 			// Disallow selecting whole table -> delete whole table should be used instead.
 			this.isEnabled = !areAllRowsSelected;