File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ export async function parseScreenTree(
9191 // Substitute macros in fileMap
9292 Object . keys ( fileMap ) . forEach ( key => {
9393 const entry = fileMap [ key ] ;
94-
94+
9595 if ( entry . macros && entry . macros . length > 0 && entry . file ) {
9696 // Use the first macro set
9797 const macros = entry . macros [ 0 ] ;
@@ -190,13 +190,11 @@ export const RecursiveAppendDuplicateFileMacros = (
190190 }
191191 for ( const sibling of jsonSiblings ) {
192192 if ( sibling . macros ) {
193-
194193 // Match against unresolved filename
195194 const matchingFileKey = Object . keys ( fileMap ) . find (
196195 key => fileMap [ key ] . file === sibling . file
197196 ) ;
198197 if ( matchingFileKey ) {
199-
200198 if ( matchingFileKey && sibling . duplicate ) {
201199 // Attach macros
202200 fileMap [ matchingFileKey ] . macros = fileMap [ matchingFileKey ] . macros
@@ -233,4 +231,4 @@ export const buildUrlId = (
233231 }
234232 const urlId = `${ idPrefix } ${ idPrefix === "" ? "" : "+" } ${ fileLabel } ` ;
235233 return { urlId, fileLabel } ;
236- } ;
234+ } ;
You can’t perform that action at this time.
0 commit comments