mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[ES|QL] Allows editing values (#217780)
## Summary My refactor caused a bug, in editing the button wasn't active. This PR is fixing it <img width="1649" alt="image" src="https://github.com/user-attachments/assets/4da7eace-8b44-49a6-b3a5-9908ce16b63b" />
This commit is contained in:
parent
579dbae6a1
commit
15d3e26678
1 changed files with 3 additions and 1 deletions
|
@ -129,7 +129,8 @@ export function ESQLControlsFlyout({
|
|||
|
||||
useEffect(() => {
|
||||
const variableNameWithoutQuestionmark = variableName.replace(/^\?+/, '');
|
||||
const variableExists = checkVariableExistence(esqlVariables, variableName);
|
||||
const variableExists =
|
||||
checkVariableExistence(esqlVariables, variableName) && !isControlInEditMode;
|
||||
setFormIsInvalid(
|
||||
!variableNameWithoutQuestionmark ||
|
||||
variableExists ||
|
||||
|
@ -137,6 +138,7 @@ export function ESQLControlsFlyout({
|
|||
!controlState?.availableOptions.length
|
||||
);
|
||||
}, [
|
||||
isControlInEditMode,
|
||||
areValuesValid,
|
||||
controlState?.availableOptions.length,
|
||||
esqlVariables,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue