mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat(matrixify): add single metric constraint (#37169)
This commit is contained in:
@@ -19,10 +19,7 @@
|
||||
import { useState, useEffect, useMemo, useCallback } from 'react';
|
||||
import { HandlerFunction, JsonValue } from '@superset-ui/core';
|
||||
import { styled } from '@apache-superset/core/ui';
|
||||
import {
|
||||
RadioButtonOption,
|
||||
sharedControlComponents,
|
||||
} from '@superset-ui/chart-controls';
|
||||
import { sharedControlComponents } from '@superset-ui/chart-controls';
|
||||
import { AreaChartStackControlOptions } from '../constants';
|
||||
|
||||
const { RadioButtonControl } = sharedControlComponents;
|
||||
@@ -60,7 +57,7 @@ export function useExtraControl<
|
||||
}, [area]);
|
||||
|
||||
const extraControlsHandler = useCallback(
|
||||
(value: RadioButtonOption[0]) => {
|
||||
(value: JsonValue) => {
|
||||
if (area) {
|
||||
if (setControlValue) {
|
||||
setControlValue('stack', value);
|
||||
|
||||
Reference in New Issue
Block a user