StatPanels: set default to last (#28617)

This commit is contained in:
Ryan McKinley 2020-11-10 00:41:57 -08:00 committed by GitHub
parent db637a3630
commit 028c770963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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