Added znzt web app
Deploy Manager App / deploy (push) Failing after 17s
Details
Deploy Manager App / deploy (push) Failing after 17s
Details
This commit is contained in:
parent
50552b24c6
commit
d3c30ecb60
|
|
@ -21,6 +21,7 @@ export default function OrdersPage({ onError }: OrdersPageProps) {
|
|||
|
||||
const isMobile = useMediaQuery('(max-width: 768px)')
|
||||
const [activeClientName, setActiveClientName] = useState<string | null>(null)
|
||||
const [pageError, setPageError] = useState<string | null>(null);
|
||||
|
||||
const loadData = async (preserveActive = false) => {
|
||||
try {
|
||||
|
|
@ -51,8 +52,8 @@ export default function OrdersPage({ onError }: OrdersPageProps) {
|
|||
})
|
||||
setEditableOrders(initialMap)
|
||||
} catch (err: any) {
|
||||
// Перехватываем точное описание ошибки с сервера (например, про Telegram) и прокидываем наверх
|
||||
const errorDesc = err.response?.data?.error_description || err.response?.data?.message || 'Не удалось загрузить данные заказов';
|
||||
setPageError(errorDesc);
|
||||
onError(errorDesc);
|
||||
} finally {
|
||||
setLoading(false)
|
||||
|
|
|
|||
Loading…
Reference in New Issue