From 6b95589bc2c90ab9bffe893ff88f171e97bef736 Mon Sep 17 00:00:00 2001 From: Avd6977 Date: Wed, 26 Sep 2018 10:33:33 -0500 Subject: [PATCH] Fixing call into local store to use category name --- .../app/shared/components/schema-category.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Squidex/app/shared/components/schema-category.component.ts b/src/Squidex/app/shared/components/schema-category.component.ts index 8ab0803e4..4dff7c540 100644 --- a/src/Squidex/app/shared/components/schema-category.component.ts +++ b/src/Squidex/app/shared/components/schema-category.component.ts @@ -60,13 +60,13 @@ export class SchemaCategoryComponent implements OnInit, OnChanges { } public ngOnInit() { - this.isOpen = this.localStore.get(`schema-category.${name}`) !== 'false'; + this.isOpen = this.localStore.get(`schema-category.${this.name}`) !== 'false'; } public toggle() { this.isOpen = !this.isOpen; - this.localStore.set(`schema-category.${name}`, this.isOpen + ''); + this.localStore.set(`schema-category.${this.name}`, this.isOpen + ''); } public ngOnChanges(changes: SimpleChanges): void { @@ -97,4 +97,4 @@ export class SchemaCategoryComponent implements OnInit, OnChanges { public trackBySchema(index: number, schema: SchemaDto) { return schema.id; } -} \ No newline at end of file +}