Skip to content

Commit

Permalink
prepend navigator layer dividers to top of metadata items
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecarenzo committed Feb 27, 2024
1 parent d713d9b commit e833a31
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,9 @@ export class MappingFileSerializer {
}
if(metadata.length) {
technique.metadata.push(
{ divider: true },
{ name: "capability", value: obj.source_id },
...metadata,
{ divider: true }
)
}
}
Expand All @@ -423,9 +423,6 @@ export class MappingFileSerializer {
},
}
for(const [id, technique] of techniques) {
if(technique.metadata.length) {
technique.metadata.unshift({ divider: true });
}
layer.techniques.push({
techniqueID : id,
score : technique.source_ids.size,
Expand Down

0 comments on commit e833a31

Please sign in to comment.