diff --git a/renderer/src/layouts/editor/InnerFramePopup.js b/renderer/src/layouts/editor/InnerFramePopup.js
index 33ca031a..9085a897 100644
--- a/renderer/src/layouts/editor/InnerFramePopup.js
+++ b/renderer/src/layouts/editor/InnerFramePopup.js
@@ -701,7 +701,7 @@ export default function InnerFramePopup() {
- {Object.keys(selected).map((k) => (
+ {Object.keys(selected).map((k,i,arraySel) => (
- 1}
/>
))}
diff --git a/renderer/src/layouts/editor/pdfGenInterface/pdfGenWrappers/HeaderWrapper/BCVHeaderWrapper.js b/renderer/src/layouts/editor/pdfGenInterface/pdfGenWrappers/HeaderWrapper/BCVHeaderWrapper.js
index 245752b0..8d09ccc0 100644
--- a/renderer/src/layouts/editor/pdfGenInterface/pdfGenWrappers/HeaderWrapper/BCVHeaderWrapper.js
+++ b/renderer/src/layouts/editor/pdfGenInterface/pdfGenWrappers/HeaderWrapper/BCVHeaderWrapper.js
@@ -68,7 +68,7 @@ export function BCVWrapperSortableList({
fontWeight: 600,
}}
>
- For each book selected above
+ Loop mode
- For each book selected above
+ Loop mode
-
+
{advanceMode ? (
- For each Obs selected above
+ Loop mode
)}
-
);
diff --git a/renderer/src/layouts/editor/pdfGenInterface/pdfGenWrappers/WrapperTemplate.js b/renderer/src/layouts/editor/pdfGenInterface/pdfGenWrappers/WrapperTemplate.js
index 2a62b3ef..152a2992 100644
--- a/renderer/src/layouts/editor/pdfGenInterface/pdfGenWrappers/WrapperTemplate.js
+++ b/renderer/src/layouts/editor/pdfGenInterface/pdfGenWrappers/WrapperTemplate.js
@@ -39,6 +39,7 @@ export function WrapperTemplate({
advanceMode,
changePrintData,
changePrintOrder,
+ showTrashButton,
}) {
const [orderSections, setOrderSelections] = useState([0]);
const updateElemOrder = (items) => {
@@ -63,6 +64,7 @@ export function WrapperTemplate({
} else {
ret = 'null';
}
+ console.log(Object.keys(parseSection));
} catch {
ret = 'null';
}
@@ -73,10 +75,11 @@ export function WrapperTemplate({
};
useEffect(() => {
- setSections(firstElem(projectInfo));
+ const fePI = firstElem(projectInfo);
+ setSections(fePI);
}, [projectInfo]);
- const [LoopMode, setLoopMode] = useState(false);
+ const [loopMode, setLoopMode] = useState(false);
const sortableListClassName = `sortable-${keyWrapper}-list`;
const itemClassName = `sortable-${keyWrapper}-item`;
@@ -183,7 +186,7 @@ export function WrapperTemplate({
advanceMode={advanceMode}
changePrintData={changePrintData}
setLoopMode={setLoopMode}
- loopMode={LoopMode}
+ loopMode={loopMode}
/>
) : (
@@ -194,7 +197,7 @@ export function WrapperTemplate({
advanceMode={advanceMode}
changePrintData={changePrintData}
setLoopMode={setLoopMode}
- loopMode={LoopMode}
+ loopMode={loopMode}
/>
) : (
@@ -205,14 +208,14 @@ export function WrapperTemplate({
advanceMode={advanceMode}
changePrintData={changePrintData}
setLoopMode={setLoopMode}
- loopMode={LoopMode}
+ loopMode={loopMode}
/>
) : (
)}
- {advanceMode && (
+ {advanceMode && showTrashButton && (