{chart?.record?.settings?.yAxis?.type === 'number' &&
chart?.record?.chartType != 'percentage' && (
<div className="mt-1 remove remove-input-txt-border">
<Controller
name="settings.yAxis.aggregation"
control={control}
render={({ field }) =>
I want to make an addition to this code snipet here.
Currently it works when:
yAxis type = number
and
chart type != percentage
I want to change it to work when:
yAxis type = number
and
chart type != percentage
or
yAxis type = formula
and
chart type != percentage
No attempts made so far
2
Answers
Your logic can be simplified to this:
(yAxis type = number or yAxis type = formula) and chart type != percentage
The simpler way:
The cleaner way:
How could you even not try first before asking for help, * sighs *
to
Hope you at least try next time