Skip to content

Commit

Permalink
fix(orb-ui): edit policy validate json config (#2728)
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-mendonca-encora authored Oct 9, 2023
1 parent 3b8d4ba commit c2c9266
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class AgentPolicyViewComponent implements OnInit, OnDestroy {
this.errorConfigMessage = 'Invalid JSON configuration, check syntax errors';
}
} else if (this.policy.format === 'yaml') {
if (this.editor.isYaml(config)) {
if (this.editor.isYaml(config) && !this.editor.isJson(config)) {
interfaceValid = true;
this.errorConfigMessage = '';
} else {
Expand Down

0 comments on commit c2c9266

Please sign in to comment.