Commit 028c7709 by Ryan McKinley Committed by GitHub

StatPanels: set default to last (#28617)

parent db637a36
...@@ -59,7 +59,7 @@ export function addStandardDataReduceOptions( ...@@ -59,7 +59,7 @@ export function addStandardDataReduceOptions(
name: 'Calculation', name: 'Calculation',
description: 'Choose a reducer function / calculation', description: 'Choose a reducer function / calculation',
editor: standardEditorsRegistry.get('stats-picker').editor as any, editor: standardEditorsRegistry.get('stats-picker').editor as any,
defaultValue: [ReducerID.mean], defaultValue: [ReducerID.lastNotNull],
// Hides it when all values mode is on // Hides it when all values mode is on
showIf: currentConfig => currentConfig.reduceOptions.values === false, showIf: currentConfig => currentConfig.reduceOptions.values === false,
}); });
......
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