From f947370efbd50885068971a7f5d37f13b6c45efc Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Wed, 28 Aug 2019 21:13:33 +0200 Subject: [PATCH 1/3] change title of the web page --- client/src/App.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/App.js b/client/src/App.js index a773083..bdf78d1 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -8,6 +8,7 @@ import { mainMenuItems } from './constants/menuItems'; class App extends Component { render() { + document.title='Sima Space CRM'; return ( From 181e4b2cea0200849ac7e021749e72e90dccbcba Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Wed, 28 Aug 2019 21:13:49 +0200 Subject: [PATCH 2/3] add key for the home page links --- client/src/scenes/Home/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/scenes/Home/index.js b/client/src/scenes/Home/index.js index b344612..21c2698 100644 --- a/client/src/scenes/Home/index.js +++ b/client/src/scenes/Home/index.js @@ -15,17 +15,17 @@ class Home extends Component {
{ mainMenuItems.map((menuItem) => { - const { showOnHomePage, title, description, url} = menuItem; + const { id, showOnHomePage, title, description, url} = menuItem; if (showOnHomePage){ - return ( - + {title}
{description}
); } + return null; }) } From db4cb95e7744ae76199e69e00b369c2ba58772b9 Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Wed, 28 Aug 2019 21:14:05 +0200 Subject: [PATCH 3/3] add error message output for deleting fees action --- controllers/integration.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/integration.js b/controllers/integration.js index 5b17d23..7cfee70 100644 --- a/controllers/integration.js +++ b/controllers/integration.js @@ -151,6 +151,7 @@ const addFees = (req, res) => { }) }) .catch((error) => { + console.log(error); res.status(500).send(error); }); }) @@ -159,6 +160,7 @@ const addFees = (req, res) => { res.status(500).send(error); }) }else{ + console.log('Date range is missing to send fees to ORD'); res.status(400).send('Date range is missing'); } };