Commit b46fa7d8 authored by Ben Anderson's avatar Ben Anderson

Deployment 20: Removed console log statements

parent 129250aa
...@@ -14,7 +14,7 @@ spec: ...@@ -14,7 +14,7 @@ spec:
spec: spec:
containers: containers:
- name: afp-inventory-ui-container - name: afp-inventory-ui-container
image: nexus.mynisum.com/afp-inventory-ui:19 image: nexus.mynisum.com/afp-inventory-ui:20
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- containerPort: 8081 - containerPort: 8081
......
...@@ -12,7 +12,7 @@ export const AuthContext = createContext(); ...@@ -12,7 +12,7 @@ export const AuthContext = createContext();
function App() { function App() {
const [isLoggedIn, setIsLoggedIn] = useState(false); const [isLoggedIn, setIsLoggedIn] = useState(false);
const [user, setUser] = useState(null); const [user, setUser] = useState(null);
console.log(user); // console.log(user);
const state = { const state = {
user, user,
setUser, setUser,
......
...@@ -23,14 +23,14 @@ export default function ProductForm(props) { ...@@ -23,14 +23,14 @@ export default function ProductForm(props) {
useEffect(() => { useEffect(() => {
fetch(`${Config.inventoryUrl}/${productId}/`).then((res) => { fetch(`${Config.inventoryUrl}/${productId}/`).then((res) => {
if (res.ok) { if (res.ok) {
console.log(res); // console.log(res);
res.json().then((data) => { res.json().then((data) => {
Object.keys(data).forEach((key) => { Object.keys(data).forEach((key) => {
if (data[key] === null) { if (data[key] === null) {
data[key] = ""; data[key] = "";
} }
}); });
console.log(data); // console.log(data);
setForm({ ...data }); setForm({ ...data });
}); });
} }
...@@ -40,7 +40,7 @@ export default function ProductForm(props) { ...@@ -40,7 +40,7 @@ export default function ProductForm(props) {
const validate = () => { const validate = () => {
setErrors([]); setErrors([]);
const errs = []; const errs = [];
console.log(form); // console.log(form);
if (form.sku.length < 3) { if (form.sku.length < 3) {
errs.push("SKU must be at least 3 characters"); errs.push("SKU must be at least 3 characters");
} }
...@@ -90,7 +90,7 @@ export default function ProductForm(props) { ...@@ -90,7 +90,7 @@ export default function ProductForm(props) {
}) })
.then((res) => { .then((res) => {
if (res.ok) { if (res.ok) {
res.json().then((data) => console.log(data)); // res.json().then((data) => console.log(data));
history.push("/products"); history.push("/products");
} else { } else {
setErrors([ setErrors([
......
...@@ -10,7 +10,7 @@ export default function ProductRow({ product, handleDelete }) { ...@@ -10,7 +10,7 @@ export default function ProductRow({ product, handleDelete }) {
const handleClose = () => { const handleClose = () => {
setShow(false); setShow(false);
console.log({ show }); // console.log({ show });
handleCloseConfirm(); handleCloseConfirm();
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment