Commit a17661d1 by Torkel Ödegaard Committed by GitHub

DashboardListPanel: Fixes issue with folder picker always showing All and using…

DashboardListPanel: Fixes issue with folder picker always showing All and using old form styles (#31160)
parent a18e4d8d
......@@ -45,7 +45,15 @@ export const plugin = new PanelPlugin<DashListOptions>(DashList)
id: 'folderId',
defaultValue: null,
editor: function RenderFolderPicker(props) {
return <FolderPicker initialTitle="All" enableReset={true} onChange={({ id }) => props.onChange(id)} />;
return (
<FolderPicker
initialFolderId={props.value}
useNewForms
initialTitle="All"
enableReset={true}
onChange={({ id }) => props.onChange(id)}
/>
);
},
})
.addCustomEditor({
......
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