From a90f34a0afc80375507b99aff7e06369c1e784a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Thu, 22 Jul 2021 10:17:39 +0500 Subject: [PATCH] =?UTF-8?q?CF2-27=20=D0=9D=D0=B0=20=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=86=D1=83=20=D0=B2=D1=8B=D0=B1=D0=BE=D1=80?= =?UTF-8?q?=D0=B0=20=D0=BA=D1=83=D1=81=D1=82=D0=B0=20=D0=BF=D0=BE=20=D0=BA?= =?UTF-8?q?=D0=B0=D1=80=D1=82=D0=B5=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Deposit.jsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/pages/Deposit.jsx b/src/pages/Deposit.jsx index 17b7c9c..038ad3c 100644 --- a/src/pages/Deposit.jsx +++ b/src/pages/Deposit.jsx @@ -4,6 +4,7 @@ import {Link} from "react-router-dom"; import LoaderPortal from '../components/LoaderPortal' import { useState, useEffect } from "react"; import {ClusterService} from '../services/api' +import notify from '../components/notify' const calcViewParams = (clusters) => { if (clusters.length === 0) @@ -34,8 +35,10 @@ export default function Deposit() { try{ const data = await ClusterService.getClusters() setClustersData(data) - }catch{ - //ignore + } + catch(ex) { + notify(`Не удалось загрузить список кустов`, 'error') + console.log(ex) } setShowLoader(false) } @@ -59,7 +62,7 @@ export default function Deposit() { > + - {cluster.name} + {cluster.caption} )}