Skip to content

Commit

Permalink
feat: handle query function - value
Browse files Browse the repository at this point in the history
  • Loading branch information
YounixM committed Feb 18, 2024
1 parent e8b3ced commit 1dad966
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ export default function QueryFunctions({

const { showInput, placeholder } = queryFunctionsTypesConfig[func.name];

console.log('showInput', showInput);
const placeholderText =
(func.args && func.args.length > 0 && func.args[0]) || placeholder;

// eslint-disable-next-line react/no-array-index-key
return (
Expand All @@ -129,7 +130,7 @@ export default function QueryFunctions({

<Input
disabled={!showInput}
placeholder={func.args[0] || placeholder}
placeholder={placeholderText}
onChange={(event): void => {
debouncedhandleUpdateFunctionArgs(func, index, event.target.value);
}}
Expand Down

0 comments on commit 1dad966

Please sign in to comment.