From e4e4784dc3a2829204791a9378bca94193685916 Mon Sep 17 00:00:00 2001 From: nklhrstv Date: Fri, 30 Oct 2020 09:39:46 +0200 Subject: [PATCH] Err content returned as string from core --- src/routes/Board/Board.js | 11 +---------- src/routes/Search/Search.js | 11 +---------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/src/routes/Board/Board.js b/src/routes/Board/Board.js index 1f4d1c755..1afd7d104 100644 --- a/src/routes/Board/Board.js +++ b/src/routes/Board/Board.js @@ -40,21 +40,12 @@ const Board = () => { ); } case 'Err': { - const type = `Error(${catalog.content.content.type})`; - const description = catalog.content.content.type === 'UnexpectedResponse' ? - catalog.content.content.content - : - catalog.content.content.type === 'Env' ? - catalog.content.content.content.message - : - null; - const message = `${type}${description !== null ? ` ${description}` : null}`; return ( ); diff --git a/src/routes/Search/Search.js b/src/routes/Search/Search.js index f59829347..d1bdc2378 100644 --- a/src/routes/Search/Search.js +++ b/src/routes/Search/Search.js @@ -63,21 +63,12 @@ const Search = ({ queryParams }) => { ); } case 'Err': { - const type = `Error(${catalog.content.content.type})`; - const description = catalog.content.content.type === 'UnexpectedResponse' ? - catalog.content.content.content - : - catalog.content.content.type === 'Env' ? - catalog.content.content.content.message - : - ''; - const message = `${type}${description !== null ? ` ${description}` : null}`; return ( );