From: Christian Korber Date: Tue, 26 May 2026 07:15:30 +0000 (+0200) Subject: luci-base: remove unnecessary constraint X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=cfc2c47b75918354eb0889ab849cdcedd8d437be;p=openwrt-luci.git luci-base: remove unnecessary constraint This constraint didn't interfere with the clone bug(#8613) and is therefore removed. Signed-off-by: Christian Korber --- diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index 7e5c4a2569..6f14678de1 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -2161,11 +2161,7 @@ const CBIAbstractValue = CBIAbstractElement.extend(/** @lends LuCI.form.Abstract } } else if (this.forcewrite || !isEqual(cval, fval)) { - /* - * do not remove elements that are not rendered yet - */ - if (this.map.findElement('data-field', this.cbid(section_id)) != null) - return Promise.resolve(this.write(section_id, fval)); + return Promise.resolve(this.write(section_id, fval)); } } else if (!this.retain) {