Skip to content

Commit 87877a5

Browse files
committed
comment adjustment
1 parent 2bb410e commit 87877a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/EditorControls.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ class EditorControls extends Component {
290290
break;
291291

292292
case EDITOR_ACTIONS.MOVE_TO:
293-
// checking is fromIndex and toIndex is a number because just checking
294-
// if not there will not work as index can be 0 and that value is falsy
293+
// checking if fromIndex and toIndex is a number because
294+
// gives errors if index is 0 (falsy value)
295295
if (payload.path && !isNaN(payload.fromIndex) && !isNaN(payload.toIndex)) {
296296
function move(container) {
297297
const movedEl = container[payload.fromIndex];

0 commit comments

Comments
 (0)