Skip to content

Commit

Permalink
updated the code to ensure it checks that value exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhanam76 committed Nov 28, 2024
1 parent 6fe81dc commit e01f0c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eq-author/src/App/qcodes/QCodesTable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const Row = memo((props) => {

const handleBlurOptionValue = useCallback(
(value) => {
const trimmedValue = value.trim().replace(/\s+/g, " ");
const trimmedValue = value?.trim().replace(/\s+/g, " ");
setValue(trimmedValue);
updateValue(mutationVariables({ id, value: trimmedValue }));
},
Expand Down

0 comments on commit e01f0c1

Please sign in to comment.