Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
fix(sg-rules): System Firewall templates view mode bug (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyRoach committed Oct 26, 2017
1 parent 6fb53c7 commit f1b34fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/security-group/sg-rules/sg-rules-dialog.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ export class SecurityGroupRulesDialogComponent {
}

private loadEntity(id: string): Observable<SecurityGroup> {
return this.entityService.get(id);
const entity = this.entityService.getPredefinedTemplates().find(item => item.id === id);
return entity ? Observable.of(entity) : this.entityService.get(id);
}

private onError(error: any): void {
Expand Down

0 comments on commit f1b34fc

Please sign in to comment.