Skip to content

Commit

Permalink
hide forecast for non-temporal too
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpark committed May 1, 2024
1 parent 79514ba commit d5e2c33
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
t,
} from '@superset-ui/core';
import { ControlPanelSectionConfig } from '../types';
import { showIfTimeSeries } from '../utils';

export const FORECAST_DEFAULT_DATA = {
forecastEnabled: false,
Expand All @@ -35,6 +36,7 @@ export const FORECAST_DEFAULT_DATA = {
export const forecastIntervalControls: ControlPanelSectionConfig = {
label: t('Predictive Analytics'),
expanded: false,
visibility: showIfTimeSeries,
controlSetRows: [
[
{
Expand Down

0 comments on commit d5e2c33

Please sign in to comment.