Skip to content

Commit

Permalink
revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
aakrem committed Mar 28, 2024
1 parent 5042b9d commit 7c28565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agenta-web/src/components/Playground/NewVariantModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const NewVariantModal: React.FC<Props> = ({
const [isInputValid, setIsInputValid] = useState(false)

const handleTemplateVariantChange = (value: string) => {
let newValue = value.includes(".") ? value.output.split(".")[0] : value
let newValue = value.includes(".") ? value.split(".")[0] : value
setTemplateVariantName(value)
setVariantPlaceHolder(`${newValue}`)
setIsInputValid(newVariantName.trim().length > 0 && value !== "Source Variant")
Expand Down

0 comments on commit 7c28565

Please sign in to comment.