Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Fixed wrong variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
scofalik committed May 28, 2018
1 parent f41171f commit 46dff19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tableediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export default class TableEditing extends Plugin {
}

const isLastCellInRow = currentCellIndex === tableRow.childCount - 1;
const isLastRow = currentRow === table.childCount - 1;
const isLastRow = currentRowIndex === table.childCount - 1;

if ( isForward && isLastRow && isLastCellInRow ) {
editor.plugins.get( TableUtils ).insertRows( table, { at: table.childCount } );
Expand Down

0 comments on commit 46dff19

Please sign in to comment.