Commit 363bf750 by Torkel Ödegaard Committed by GitHub

Dashlist: Fixed dashlist broken in edit mode (#23426)

parent 04d3c3aa
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment