8
0
Prechádzať zdrojové kódy

Internal: Minor cleanup.

Marek Lewandowski 5 rokov pred
rodič
commit
1b6a6bbeb6

+ 1 - 2
packages/ckeditor5-table/src/commands/insertcolumncommand.js

@@ -79,9 +79,8 @@ export default class InsertColumnCommand extends Command {
 		const table = tableCell.parent.parent;
 
 		const { column } = tableUtils.getCellLocation( tableCell );
-		const insertAt = insertBefore ? column : column + 1;
 
-		tableUtils.insertColumns( table, { columns: 1, at: insertAt } );
+		tableUtils.insertColumns( table, { columns: 1, at: insertBefore ? column : column + 1 } );
 
 		function getRangeContainedElement( range ) {
 			const nodeAfterStart = range.start.nodeAfter;