fix: correct logic for edit mode check

Reversed the condition checking for edit mode to ensure proper functionality. Previously, the code assumed edit mode when it wasn't, causing unintended behavior. This fix addresses incorrect section handling when the inplace editable class is present.
This commit is contained in:
Kumi 2024-09-23 09:48:12 +02:00
parent 8c1e8c49eb
commit 6ff596c5e1
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -214,7 +214,7 @@
const editMode = $(".inplaceeditable").length > 0;
if (editMode) {
if (!editMode) {
var sections = $('.course-section');
var found = false;