Skip to content

Commit

Permalink
fix(agent): use consistent notification field (#1057) (#1058)
Browse files Browse the repository at this point in the history
Signed-off-by: Thuan Vo <thvo@redhat.com>
(cherry picked from commit 13db028)

Co-authored-by: Thuan Vo <thvo@redhat.com>
  • Loading branch information
mergify[bot] and Thuan Vo authored Jun 23, 2023
1 parent 99ea62d commit ef06db2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/Agent/AgentProbeTemplates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export const AgentProbeTemplates: React.FC<AgentProbeTemplatesProps> = (props) =
return [
...old,
{
name: event.message.templateName,
name: event.message.probeTemplate,
xml: event.message.templateContent,
} as ProbeTemplate,
];
Expand Down
3 changes: 1 addition & 2 deletions src/test/Agent/AgentProbeTemplates.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ const mockCreateTemplateNotification = {
type: mockMessageType,
} as MessageMeta,
message: {
templateName: mockAnotherProbeTemplate.name,
probeTemplate: mockAnotherProbeTemplate.name,
templateContent: mockAnotherProbeTemplate.xml,
probeTemplate: 'files-uploads/abcdfg',
},
} as NotificationMessage;

Expand Down

0 comments on commit ef06db2

Please sign in to comment.