fix(explore): make SORT-Descending visible if Sort-by has value (#17726)

This commit is contained in:
Stephen Liu
2021-12-21 15:27:21 +08:00
committed by GitHub
parent 5b0aa27f2b
commit d5768ab649
16 changed files with 32 additions and 0 deletions

View File

@@ -42,6 +42,8 @@ const config: ControlPanelConfig = {
label: t('Sort Descending'),
default: true,
description: t('Whether to sort descending or ascending'),
visibility: ({ controls }) =>
Boolean(controls?.timeseries_limit_metric.value),
},
},
{