From 9cfe2a7f5cce4fc0b7932c177ef2ba5351bbf030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 10 Sep 2018 11:35:59 +0200 Subject: [PATCH] fix: Dashboard permissions now shows correctly, fixes #13201 --- public/app/features/dashboard/folder_picker/folder_picker.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/features/dashboard/folder_picker/folder_picker.ts b/public/app/features/dashboard/folder_picker/folder_picker.ts index 352b29d27a0..80651fecb7e 100644 --- a/public/app/features/dashboard/folder_picker/folder_picker.ts +++ b/public/app/features/dashboard/folder_picker/folder_picker.ts @@ -131,6 +131,7 @@ export class FolderPickerCtrl { private loadInitialValue() { const resetFolder = { text: this.initialTitle, value: null }; const rootFolder = { text: this.rootName, value: 0 }; + this.getOptions('').then(result => { let folder; if (this.initialFolderId) { @@ -150,7 +151,7 @@ export class FolderPickerCtrl { this.folder = folder; // if this is not the same as our initial value notify parent - if (this.folder.id !== this.initialFolderId) { + if (this.folder.value !== this.initialFolderId) { this.onChange({ $folder: { id: this.folder.value, title: this.folder.text } }); } });