diff --git a/public/app/core/components/Select/DashboardPicker.tsx b/public/app/core/components/Select/DashboardPicker.tsx index 918020c7c7a..a70f60490fc 100644 --- a/public/app/core/components/Select/DashboardPicker.tsx +++ b/public/app/core/components/Select/DashboardPicker.tsx @@ -24,7 +24,13 @@ const getDashboards = (query = '') => { }); }; -export const DashboardPicker: FC = ({ onSelected, currentDashboard, size = 'md', isClearable = false }) => { +export const DashboardPicker: FC = ({ + onSelected, + currentDashboard, + size = 'md', + isClearable = false, + ...rest +}) => { const debouncedSearch = debounce(getDashboards, 300, { leading: true, trailing: true, @@ -43,6 +49,7 @@ export const DashboardPicker: FC = ({ onSelected, currentDashboard, size placeholder="Select dashboard" noOptionsMessage="No dashboards found" value={currentDashboard} + {...rest} /> ); };