From 4c89958c08c3e9cb7db4987fdaaa6d8b0986c6b9 Mon Sep 17 00:00:00 2001 From: Wahed Mangal Date: Tue, 28 Jan 2020 14:12:01 +0100 Subject: [PATCH] fix: don't crash if server returns null summary --- src/App.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.js b/src/App.js index 378c4b125..c4b47565e 100644 --- a/src/App.js +++ b/src/App.js @@ -135,7 +135,7 @@ const MyApp = () => { return } - if (summary.status == 'ERROR' && !newTask.error) { + if (summary && summary.status == 'ERROR' && !newTask.error) { newTask.error = true } @@ -173,7 +173,7 @@ const MyApp = () => { ]) return ( -
+ <> {loading ? ( @@ -190,7 +190,7 @@ const MyApp = () => { )} -
+ ) }