Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ const LegacyDashboardsVariableDropdown: FC<VariableDropdownProps> = ({ id, name
]);

useEffect(() => {
if (variable?.value !== queryParam) {
// Wait to set variable and query values until all options have been loaded
if (variable?.value !== queryParam && options?.length > 0) {
// Default to using the query param to allow for sharable links
if (queryParam) {
dispatch(dashboardsPatchVariable(name, { value: queryParam }));
Expand Down