diff --git a/Storypath/Storypath.html b/Storypath/Storypath.html index 4e26c2d7ec..c0cffed21d 100644 --- a/Storypath/Storypath.html +++ b/Storypath/Storypath.html @@ -574,7 +574,7 @@
- +
@@ -582,7 +582,7 @@
- +
@@ -3936,7 +3936,7 @@ const addSubsection = async function(event){ let type = button.replace(/add-/,''); let newID = generateRowID(); k.getAllAttrs({props:[],callback:(attributes,sections,casc)=>{ - addSystemSubSection({type,newID,section,attributes,sections,casc}); + addSystemSubSection({type,newID,section,attributes,sections,casc,masterID:rowID}); k.setActionCalls({attributes,sections}); }}) }; @@ -4903,11 +4903,12 @@ const repeatProcessors = { };/** * Logic for adding the system specific subsections */ -const addSystemSubSection = ({type,newID,section,attributes,sections}) => { +const addSystemSubSection = ({type,newID,section,attributes,sections,masterID}) => { if(/birthright/.test(type)){ addBirthright(attributes,type,newID); }else{ - addChildSection(attributes,sections,section,newID,type,newID) + const rowID = masterID || newID; + addChildSection(attributes,sections,section,rowID,type,newID) } }