From b9b5beb26ca4ad6131e12452e0a6a59df7cfa2d5 Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 30 May 2024 17:10:16 +0300 Subject: [PATCH] fix: non-existing AO blocks new AOs from being created (DHIS2-13167) (#3056) --- src/actions/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/actions/index.js b/src/actions/index.js index 6e525c9d0e..46a7576726 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -109,6 +109,7 @@ export const tDoLoadVisualization = if (errorResponse?.details?.httpStatusCode === 404) { error = new VisualizationNotFoundError() + history.push('/') } else if (errorResponse?.message) { error = errorResponse.message } else {