adsad
This commit is contained in:
@@ -502,6 +502,12 @@
|
||||
// 🚨 KRITISCH: Server erwartet das Feld 'json'
|
||||
json: jsonProjectDataRaw,
|
||||
};
|
||||
const activateNext = B.NEXT_ACTIVATE_VERSION || window.NEXT_ACTIVATE_VERSION;
|
||||
if (activateNext) {
|
||||
dataToSend.activate_version = 1;
|
||||
B.NEXT_ACTIVATE_VERSION = 0;
|
||||
window.NEXT_ACTIVATE_VERSION = 0;
|
||||
}
|
||||
if (SECTION_ID) {
|
||||
dataToSend.section_id = SECTION_ID;
|
||||
}
|
||||
|
||||
@@ -191,7 +191,7 @@
|
||||
return [];
|
||||
}
|
||||
const promises = sections.map(section =>
|
||||
fetchData('content', 'list', { section_id: section.id })
|
||||
fetchData('content', 'list', { section_id: section.id, active_only: 1 })
|
||||
.then(items => (Array.isArray(items) ? items : []).map(i => ({
|
||||
...i,
|
||||
kind: String(section.slug || '').toLowerCase(),
|
||||
|
||||
Reference in New Issue
Block a user