From ff4a64bffff3f28fe4591484760ca6506f804c93 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Wed, 24 Feb 2021 18:29:10 -0700 Subject: [PATCH] admin(ui): remove console.logs --- resources/scripts/components/admin/api/NewApiKeyButton.tsx | 1 - .../components/admin/nodes/NodeConfigurationContainer.tsx | 5 +---- .../scripts/components/admin/nodes/NodeSettingsContainer.tsx | 3 --- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/resources/scripts/components/admin/api/NewApiKeyButton.tsx b/resources/scripts/components/admin/api/NewApiKeyButton.tsx index b387f21c8..a9683b4bb 100644 --- a/resources/scripts/components/admin/api/NewApiKeyButton.tsx +++ b/resources/scripts/components/admin/api/NewApiKeyButton.tsx @@ -23,7 +23,6 @@ export default () => { const submit = (values: Values, { setSubmitting }: FormikHelpers) => { clearFlashes('api:create'); - console.log(values); setSubmitting(true); setTimeout(() => { diff --git a/resources/scripts/components/admin/nodes/NodeConfigurationContainer.tsx b/resources/scripts/components/admin/nodes/NodeConfigurationContainer.tsx index 77ebc1238..35bb1302e 100644 --- a/resources/scripts/components/admin/nodes/NodeConfigurationContainer.tsx +++ b/resources/scripts/components/admin/nodes/NodeConfigurationContainer.tsx @@ -22,10 +22,7 @@ export default () => { useEffect(() => { getNodeConfiguration(node.id) - .then((configuration) => { - console.log(configuration); - setConfiguration(configuration); - }) + .then((configuration) => setConfiguration(configuration)) .catch(error => { console.error(error); clearAndAddHttpError({ key: 'node', error }); diff --git a/resources/scripts/components/admin/nodes/NodeSettingsContainer.tsx b/resources/scripts/components/admin/nodes/NodeSettingsContainer.tsx index bd81ced4d..e980ad79d 100644 --- a/resources/scripts/components/admin/nodes/NodeSettingsContainer.tsx +++ b/resources/scripts/components/admin/nodes/NodeSettingsContainer.tsx @@ -42,9 +42,6 @@ export default () => { const submit = ({ name, description, locationId, databaseHostId, fqdn, listenPortHTTP, publicPortHTTP, listenPortSFTP, publicPortSFTP }: Values, { setSubmitting }: FormikHelpers) => { 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 }) .then(() => setNode({ ...node, name, description, locationId, fqdn, listenPortHTTP, publicPortHTTP, listenPortSFTP, publicPortSFTP })) .catch(error => {