Skip to content

Commit

Permalink
Dashlist: Fixed dashlist broken in edit mode (#23426)
Browse files Browse the repository at this point in the history
  • Loading branch information
torkelo authored Apr 8, 2020
1 parent 04d3c3a commit 363bf75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/app/core/components/Select/FolderPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class FolderPicker extends PureComponent<Props, State> {

let folder: SelectableValue<number> = { value: -1 };

if (initialFolderId !== undefined && initialFolderId > -1) {
if (initialFolderId !== undefined && initialFolderId !== null && initialFolderId > -1) {
folder = options.find(option => option.value === initialFolderId) || { value: -1 };
} else if (enableReset && initialTitle) {
folder = resetFolder;
Expand Down

0 comments on commit 363bf75

Please sign in to comment.