📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Merge pull request #292 from kruzhambus/comments
Andrii Romasiun489a9559f69f
diff --cc src/pages/Project/View/ViewProject.tsxindex 85d303cde,1629bdcd3..dc1f5022a--- a/src/pages/Project/View/ViewProject.tsx+++ b/src/pages/Project/View/ViewProject.tsx@@@ -437,22 -524,10 +524,23 @@@ const ViewProject = (}}, 0), [activeTab])+ // onErrorLoading is a function for redirect to dashboard when project do not existconst onErrorLoading = () => {+ if (projectPassword) {+ checkPassword(id, projectPassword).then((res) => {+ if (res) {+ history.push(_replace(routes.project, ':id', id))+ return+ }++ showError(t('apiNotifications.incorrectPassword'))+ history.push(_replace(routes.project_protected_password, ':id', id))+ removeItem(PROJECTS_PROTECTED)+ })+ return+ }+showError(t('project.noExist'))- removeItem(PROJECTS_PROTECTED)history.push(routes.dashboard)}