Skip to content

Commit

Permalink
Remove console log
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <dxho@amazon.com>
  • Loading branch information
derek-ho committed Oct 9, 2023
1 parent 7e2127c commit a1e48ce
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions public/components/datasources/components/new/name_row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ interface ConfigureNameProps {

export const NameRow = (props: ConfigureNameProps) => {
const { setNameForRequest, currentName, currentError, setErrorForForm } = props;
console.log(currentError, currentName);
const { pplService } = coreRefs;

const [name, setName] = useState<string>(currentName);
Expand All @@ -33,11 +32,9 @@ export const NameRow = (props: ConfigureNameProps) => {
}, []);

const onBlur = (e) => {
console.log(e.target.value, existingNames, existingNames.includes(e.target.value));
if (e.target.value === '') {
setErrorForForm('Name is a required parameter.');
} else if (existingNames.includes(e.target.value)) {
console.log(999);
setErrorForForm('Name must be unique across data sources.');
} else {
setErrorForForm('');
Expand Down

0 comments on commit a1e48ce

Please sign in to comment.