feat: fixes
This commit is contained in:
@@ -352,6 +352,16 @@ export const sanitizeStructureList = (structure = [], options = {}) => {
|
||||
result.unshift(intro);
|
||||
}
|
||||
|
||||
const outroIndex = result.findIndex((item) => {
|
||||
const meta = getSegmentMeta(item);
|
||||
return meta?.exclusiveGroup === "outro";
|
||||
});
|
||||
|
||||
if (outroIndex !== -1 && outroIndex < result.length - 1) {
|
||||
const [outro] = result.splice(outroIndex, 1);
|
||||
result.push(outro);
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user