Skip to content

Commit 2bf0d53

Browse files
martinkrulltottjenniferarnesen
authored andcommitted
fix: non-existing AO blocks new AOs from being created (DHIS2-13167) (#3056)
1 parent 8dd390b commit 2bf0d53

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/actions/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export const tDoLoadVisualization =
109109

110110
if (errorResponse?.details?.httpStatusCode === 404) {
111111
error = new VisualizationNotFoundError()
112+
history.push('/')
112113
} else if (errorResponse?.message) {
113114
error = errorResponse.message
114115
} else {

0 commit comments

Comments
 (0)