From 0f31a7910542b50cde1bded12ae8efc06a47a48b Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Sat, 19 Nov 2022 10:25:34 -0600 Subject: [PATCH] cleanup qlab template --- plugins/qlab/cue.ejs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/plugins/qlab/cue.ejs b/plugins/qlab/cue.ejs index b887359..12fcbc7 100644 --- a/plugins/qlab/cue.ejs +++ b/plugins/qlab/cue.ejs @@ -33,22 +33,20 @@ <% for(let i=cue.nestedGroupModes.length; i>0; i--){ %> - <% let test = "" %> - <% if(cue.type=="Group" && i==1 && cue.cues.length==0){ %> - <%= test %> + <% }else if(cue.type=="Group" && i==1){ %> - <%= test %> + <% }else if(cue.nestedGroupPosition[i-1]==0 && cue.nestedGroupPosition[i-2]==0){ %> - <%= test %> + <% }else if(i==1 && cue.nestedGroupPosition[i]==0){ %> - <%= test %> + <% }else{ %> - <%= test %> + <% } %>