Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Fix weird \n bug in stop sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
parzival418 committed Oct 14, 2021
1 parent 6b077e7 commit aa09f4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/features/Thoth/components/DataControls/Input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ const Input = ({ control, updateData, initialValue }) => {

const onChange = e => {
setValue(e.target.value)
const value = e.target.value === '\\n' ? '\n' : e.target.value
updateData({
[dataKey]: e.target.value,
[dataKey]: value,
})
}

Expand Down

0 comments on commit aa09f4c

Please sign in to comment.