aktiv/inaktiv

This commit is contained in:
2026-02-04 01:12:56 +01:00
parent 900298401b
commit b33ac3b5b7
2 changed files with 4 additions and 14 deletions

View File

@@ -1 +1 @@
1.2.37
1.2.38

View File

@@ -598,15 +598,9 @@ export function initEditor() {
}
const win = iframe?.contentWindow;
if (win && win.BridgeParts) {
const canOverwrite = !!(currentVersionMeta
&& Number(currentVersionMeta.is_active || 0) === 0
&& Number(currentVersionMeta.was_active || 0) === 0);
win.BridgeParts.CURRENT_VERSION_ID = canOverwrite ? currentVersionId : 0;
win.BridgeParts.CURRENT_VERSION_ID = currentVersionId || 0;
} else if (win) {
const canOverwrite = !!(currentVersionMeta
&& Number(currentVersionMeta.is_active || 0) === 0
&& Number(currentVersionMeta.was_active || 0) === 0);
win.CURRENT_VERSION_ID = canOverwrite ? currentVersionId : 0;
win.CURRENT_VERSION_ID = currentVersionId || 0;
}
}
@@ -1142,11 +1136,7 @@ export function initEditor() {
activateNext = decision === 'yes';
}
const overwriteVersionId = (currentVersionMeta
&& Number(currentVersionMeta.is_active || 0) === 0
&& Number(currentVersionMeta.was_active || 0) === 0)
? Number(currentVersionId || 0)
: 0;
const overwriteVersionId = Number(currentVersionId || 0);
if (currentEditorType === 'craftjs') {
const html = craftEditor ? craftEditor.getContent() : '';