File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
static/app/views/dashboards/widgetBuilder/components/visualize Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -440,7 +440,11 @@ function Visualize({error, setError}: VisualizeProps) {
440440 const isOnlyFieldOrAggregate =
441441 fields . length === 2 &&
442442 field . kind !== FieldValueKind . EQUATION &&
443- fields . some ( fieldItem => fieldItem . kind === FieldValueKind . EQUATION ) ;
443+ fields . some ( fieldItem => fieldItem . kind === FieldValueKind . EQUATION ) &&
444+ // The spans dataset can have a single equation, so isOnlyFieldOrAggregate
445+ // is not applicable. The errors dataset requires one series to be
446+ // selected for equations to work.
447+ state . dataset !== WidgetType . SPANS ;
444448
445449 // Depending on the dataset and the display type, we use different options for
446450 // displaying in the column select.
You can’t perform that action at this time.
0 commit comments