admin(ui): remove console.logs
This commit is contained in:
parent
46759ba967
commit
ff4a64bfff
3 changed files with 1 additions and 8 deletions
|
@ -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(() => {
|
||||||
|
|
|
@ -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 });
|
||||||
|
|
|
@ -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 => {
|
||||||
|
|
Loading…
Reference in a new issue