diff --git a/src/app/security-group/sg-rules/sg-rules-dialog.component.ts b/src/app/security-group/sg-rules/sg-rules-dialog.component.ts index 2f93fa92bb..0e0703bc0e 100644 --- a/src/app/security-group/sg-rules/sg-rules-dialog.component.ts +++ b/src/app/security-group/sg-rules/sg-rules-dialog.component.ts @@ -53,7 +53,8 @@ export class SecurityGroupRulesDialogComponent { } private loadEntity(id: string): Observable { - 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 {