summaryrefslogtreecommitdiffstatshomepage
path: root/core/misc/tabledrag.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/misc/tabledrag.js')
-rw-r--r--core/misc/tabledrag.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/misc/tabledrag.js b/core/misc/tabledrag.js
index b9f32bd54138..5786ebd9431a 100644
--- a/core/misc/tabledrag.js
+++ b/core/misc/tabledrag.js
@@ -1064,8 +1064,7 @@
const nextRow = $nextRow.get(0);
sourceRow = changedRow;
if (
- previousRow &&
- previousRow.matches('.draggable') &&
+ previousRow?.matches('.draggable') &&
$previousRow.find(`.${group}`).length
) {
if (this.indentEnabled) {
@@ -1079,8 +1078,7 @@
sourceRow = previousRow;
}
} else if (
- nextRow &&
- nextRow.matches('.draggable') &&
+ nextRow?.matches('.draggable') &&
$nextRow.find(`.${group}`).length
) {
if (this.indentEnabled) {