Commit b46fa7d8 authored by Ben Anderson's avatar Ben Anderson

Deployment 20: Removed console log statements

parent 129250aa
......@@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: afp-inventory-ui-container
image: nexus.mynisum.com/afp-inventory-ui:19
image: nexus.mynisum.com/afp-inventory-ui:20
imagePullPolicy: Always
ports:
- containerPort: 8081
......
......@@ -12,7 +12,7 @@ export const AuthContext = createContext();
function App() {
const [isLoggedIn, setIsLoggedIn] = useState(false);
const [user, setUser] = useState(null);
console.log(user);
// console.log(user);
const state = {
user,
setUser,
......
......@@ -23,14 +23,14 @@ export default function ProductForm(props) {
useEffect(() => {
fetch(`${Config.inventoryUrl}/${productId}/`).then((res) => {
if (res.ok) {
console.log(res);
// console.log(res);
res.json().then((data) => {
Object.keys(data).forEach((key) => {
if (data[key] === null) {
data[key] = "";
}
});
console.log(data);
// console.log(data);
setForm({ ...data });
});
}
......@@ -40,7 +40,7 @@ export default function ProductForm(props) {
const validate = () => {
setErrors([]);
const errs = [];
console.log(form);
// console.log(form);
if (form.sku.length < 3) {
errs.push("SKU must be at least 3 characters");
}
......@@ -90,7 +90,7 @@ export default function ProductForm(props) {
})
.then((res) => {
if (res.ok) {
res.json().then((data) => console.log(data));
// res.json().then((data) => console.log(data));
history.push("/products");
} else {
setErrors([
......
......@@ -10,7 +10,7 @@ export default function ProductRow({ product, handleDelete }) {
const handleClose = () => {
setShow(false);
console.log({ show });
// console.log({ show });
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