MSP-3325 add message.error and navigate in ApplicationsPage, ApplicationsContent and ModulesPage

This commit is contained in:
Anastasiia committed 2024-05-28 14:57:32 +07:00
1 parent 759f432e6c
commit 039120aec0
3 files changed
+14 -7

No files matched your search

+2 -1
View File
@@ -49,7 +49,8 @@ const ModulesPage = () => {
useEffect(() => {
if (!isPageAvailable) {
navigate(routePaths.error)
navigate(routePaths.profile)
message.error('Страница не найдена')
}
}, [isPageAvailable])