admin(ui): remove console.logs

This commit is contained in:
Matthew Penner 2021-02-24 18:29:10 -07:00
parent 46759ba967
commit ff4a64bfff
3 changed files with 1 additions and 8 deletions

View file

@ -23,7 +23,6 @@ export default () => {
const submit = (values: Values, { setSubmitting }: FormikHelpers<Values>) => { const submit = (values: Values, { setSubmitting }: FormikHelpers<Values>) => {
clearFlashes('api:create'); clearFlashes('api:create');
console.log(values);
setSubmitting(true); setSubmitting(true);
setTimeout(() => { setTimeout(() => {

View file

@ -22,10 +22,7 @@ export default () => {
useEffect(() => { useEffect(() => {
getNodeConfiguration(node.id) getNodeConfiguration(node.id)
.then((configuration) => { .then((configuration) => setConfiguration(configuration))
console.log(configuration);
setConfiguration(configuration);
})
.catch(error => { .catch(error => {
console.error(error); console.error(error);
clearAndAddHttpError({ key: 'node', error }); clearAndAddHttpError({ key: 'node', error });

View file

@ -42,9 +42,6 @@ export default () => {
const submit = ({ name, description, locationId, databaseHostId, fqdn, listenPortHTTP, publicPortHTTP, listenPortSFTP, publicPortSFTP }: Values, { setSubmitting }: FormikHelpers<Values>) => { const submit = ({ name, description, locationId, databaseHostId, fqdn, listenPortHTTP, publicPortHTTP, listenPortSFTP, publicPortSFTP }: Values, { setSubmitting }: FormikHelpers<Values>) => {
clearFlashes('node'); clearFlashes('node');
console.log(`Location ID: ${locationId}`);
console.log(`Database Host ID: ${databaseHostId || 'null'}`);
updateNode(node.id, { name, description, locationId, databaseHostId, fqdn, listenPortHTTP, publicPortHTTP, listenPortSFTP, publicPortSFTP }) updateNode(node.id, { name, description, locationId, databaseHostId, fqdn, listenPortHTTP, publicPortHTTP, listenPortSFTP, publicPortSFTP })
.then(() => setNode({ ...node, name, description, locationId, fqdn, listenPortHTTP, publicPortHTTP, listenPortSFTP, publicPortSFTP })) .then(() => setNode({ ...node, name, description, locationId, fqdn, listenPortHTTP, publicPortHTTP, listenPortSFTP, publicPortSFTP }))
.catch(error => { .catch(error => {