diff options
| author | historia <[not public]> | 2026-07-09 05:27:10 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-09 05:27:10 -0400 |
| commit | c705ae942573984784ef501bf8198f61f5206ddd (patch) | |
| tree | c964066f3a244002bf75cb50a877630f46496f81 /internal/admin/static/intereditor.js | |
| parent | 74153c7814fc4cef988066ef04e38731a943bc12 (diff) | |
| download | thehouseoficarus-c705ae942573984784ef501bf8198f61f5206ddd.tar.gz | |
refactor: simplify yaml, remove support for old scalar fields
Diffstat (limited to 'internal/admin/static/intereditor.js')
| -rw-r--r-- | internal/admin/static/intereditor.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/internal/admin/static/intereditor.js b/internal/admin/static/intereditor.js index 4e48df1..b46c456 100644 --- a/internal/admin/static/intereditor.js +++ b/internal/admin/static/intereditor.js @@ -944,23 +944,6 @@ function ie_syncActEntry(ed, secId, secPath, idx) { delete ed[secPath][idx].message; } -// ── Upgrade: migrate legacy message/condition/action on load ── - -function ie_upgradeItem(item) { - if (!item) return; - if (item.message && typeof item.message === 'string' && item.message.trim()) { - if (!item.action || typeof item.action !== 'object') item.action = {}; - if (!item.action.message) item.action.message = item.message; - delete item.message; - } - if (item.condition && typeof item.condition === 'string') { - try { item.condition = JSON.parse(item.condition); } catch(e) { delete item.condition; } - } - if (item.action && typeof item.action === 'string') { - try { item.action = JSON.parse(item.action); } catch(e) { delete item.action; } - } -} - // ── Shared interaction-style array-section renderer ── // // Replaces the duplicated `renderArraySection` (objecteditor.js) and @@ -984,8 +967,6 @@ function ie_renderArraySection(ctx) { var h = ''; arr.forEach(function(item, idx) { - ie_upgradeItem(item); - visMap[idx] = visMap[idx] || {}; var vis = visMap[idx]; var showItem = vis.item_id || (item.item_id && item.item_id !== ''); |
