Skip to content

Commit

Permalink
chore(agent): use consistent notification field
Browse files Browse the repository at this point in the history
Signed-off-by: Thuan Vo <thvo@redhat.com>
  • Loading branch information
Thuan Vo committed Jun 22, 2023
1 parent db0d4cf commit d9aea48
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 d9aea48

Please sign in to comment.