Skip to content

Commit

Permalink
ui: Cleaned metadata values in signature page
Browse files Browse the repository at this point in the history
  • Loading branch information
Stoyan Atanasoff authored and regit committed Jul 21, 2024
1 parent 07ab31a commit 12a0cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/app/components/Signature/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const getSignatureMetadata = rule => {
?.split('metadata:')[1]
?.split(', ')
.map(data => data.split(' '))
.map(([label, value]) => ({ label: label.split('_').join(' '), value }))
.map(([label, value]) => ({ label: label.split('_').join(' '), value: formatReference(value, label) }))
.filter(({ label }) => label !== 'created at' && label !== 'updated at') || [];

return [...metadata, { label: 'created at', value: rule.created || 'unknown' }, { label: 'updated at', value: rule.updated || 'unknown' }];
Expand Down

0 comments on commit 12a0cff

Please sign in to comment.