From 0d727a5ffd922fdc425af47bfa3f60ea455d7496 Mon Sep 17 00:00:00 2001 From: Cilibiu Bogdan Date: Tue, 20 Feb 2018 14:05:08 +0200 Subject: [PATCH] [ACA-1134] Shared Files - get user preference sorting (#191) --- src/app/components/shared-files/shared-files.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/shared-files/shared-files.component.ts b/src/app/components/shared-files/shared-files.component.ts index c77a57780..7db5f6808 100644 --- a/src/app/components/shared-files/shared-files.component.ts +++ b/src/app/components/shared-files/shared-files.component.ts @@ -52,8 +52,8 @@ export class SharedFilesComponent extends PageComponent implements OnInit, OnDes preferences: UserPreferencesService) { super(preferences); - const sortingKey = preferences.get('shared.sorting.key') || 'modifiedAt'; - const sortingDirection = preferences.get('shared.sorting.direction') || 'desc'; + const sortingKey = preferences.get('shared-files.sorting.key') || 'modifiedAt'; + const sortingDirection = preferences.get('shared-files.sorting.direction') || 'desc'; this.sorting = [sortingKey, sortingDirection]; }