From b5091ea171b5913d9bd7259912aecda868a20011 Mon Sep 17 00:00:00 2001 From: danielc-n Date: Thu, 26 Sep 2024 10:24:37 +0200 Subject: [PATCH] modified the code to avoid deleting all the wrappers in the list. When you only have one item in a list, you cannot delete it anymore --- .../src/layouts/editor/InnerFramePopup.js | 3 ++- .../HeaderWrapper/BCVHeaderWrapper.js | 2 +- .../HeaderWrapper/JXLHeaderWrapper.js | 2 +- .../HeaderWrapper/OBSHeaderWrapper.js | 5 ++--- .../pdfGenWrappers/WrapperTemplate.js | 21 +++++++++++-------- 5 files changed, 18 insertions(+), 15 deletions(-) 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() {