Skip to content

Commit 81a5e00

Browse files
authored
fix: move param to correct scope (#4358)
1 parent 51fca9c commit 81a5e00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/flows/pipes/RawFluxEditor/FunctionsList/perFunction/FluxDocsTooltipContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ const FluxDocsTooltipContent: FC<TooltipProps> = ({
2525
}, [])
2626
const argComponent = () => {
2727
if (func.fluxParameters.length > 0) {
28-
let param = 'Optional'
2928
return func.fluxParameters.map(arg => {
29+
let param = 'Optional'
3030
const description = arg.headline.slice(arg.name.length + 1)
3131
arg.required ? (param = 'Required') : param
3232

src/timeMachine/components/dynamicFluxFunctionsToolbar/TooltipArguments.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class TooltipArguments extends PureComponent<Props> {
2323
const {argsList} = this.props
2424

2525
if (argsList.length > 0) {
26-
let param = 'Optional'
2726
return argsList.map(argument => {
27+
let param = 'Optional'
2828
const description = argument.headline.slice(argument.name.length + 1)
2929
argument.required ? (param = 'Required') : param
3030

0 commit comments

Comments
 (0)