diff --git a/public/app/features/dashboard-scene/settings/variables/useVariableSelectionOptionsCategory.tsx b/public/app/features/dashboard-scene/settings/variables/useVariableSelectionOptionsCategory.tsx
index d8d0ecfdf28..5f8260ea1b9 100644
--- a/public/app/features/dashboard-scene/settings/variables/useVariableSelectionOptionsCategory.tsx
+++ b/public/app/features/dashboard-scene/settings/variables/useVariableSelectionOptionsCategory.tsx
@@ -46,8 +46,10 @@ export function useVariableSelectionOptionsCategory(variable: MultiValueVariable
),
useShowIf: () => {
const state = variable.useState();
- const hasJsonValuesFormat = 'valuesFormat' in state && state.valuesFormat === 'json';
- return hasJsonValuesFormat ? false : (state.includeAll ?? false);
+ const hasMultiProps =
+ ('valuesFormat' in state && state.valuesFormat === 'json') ||
+ state.options.every((o) => Boolean(o.properties));
+ return hasMultiProps ? false : (state.includeAll ?? false);
},
render: (descriptor) => ,
})
@@ -62,8 +64,10 @@ export function useVariableSelectionOptionsCategory(variable: MultiValueVariable
),
useShowIf: () => {
const state = variable.useState();
- const hasJsonValuesFormat = 'valuesFormat' in state && state.valuesFormat === 'json';
- return !hasJsonValuesFormat;
+ const hasMultiProps =
+ ('valuesFormat' in state && state.valuesFormat === 'json') ||
+ state.options.every((o) => Boolean(o.properties));
+ return !hasMultiProps;
},
render: (descriptor) => ,
})