Skip to content

Conversation

@thucnobita97
Copy link

No description provided.

);
const previewNodeMutation = usePreviewNodeMutation();
// const [condValue, setCondValue] = useState("");
const [condValues, setCondValues] = useState([{ index: 0, value: "" }]);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate value error when entering multiple conditions -> change storage to array with Object type

field: string,
value: any
) => {
setCondValues([
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the input value of the setCondValues ​​function

<TextField.Root
size="1"
value={
condValues.find(
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get value from array by index

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant