From 435ebdb3fa8a1783af11a6cb66a7784b2323d6a4 Mon Sep 17 00:00:00 2001 From: nklhrstv Date: Thu, 19 May 2022 16:24:07 +0300 Subject: [PATCH] checks for catalogs which are not yet started to load --- src/routes/Board/Board.js | 4 ++-- src/routes/Search/Search.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/Board/Board.js b/src/routes/Board/Board.js index b3b7860f8..2cbe193c9 100644 --- a/src/routes/Board/Board.js +++ b/src/routes/Board/Board.js @@ -52,7 +52,7 @@ const Board = () => { null } {board.catalogs.map((catalog, index) => { - switch (catalog.content.type) { + switch (catalog.content?.type) { case 'Ready': { return ( { /> ); } - case 'Loading': { + default: { return ( { : search.catalogs.map((catalog, index) => { - switch (catalog.content.type) { + switch (catalog.content?.type) { case 'Ready': { return ( { /> ); } - case 'Loading': { + default: { return (