From 4a5089338848b67dae2238f166413a8d9af60d0f Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 2 Nov 2022 08:45:17 -0700 Subject: [PATCH] Fix config-errors dedicated page There was a type update to our configErrors state from a list of errors to a dict containing a list of errors and a ready state flag. This broke the map() call on configErrors in the dedicated config errors page because you can't map an object only an Array. We fix this by mapping the objects errors attribute into the page as the config errors allowing us to keep mapping over it. Change-Id: Ib84ca9241fb456f9493a07d1c7e1220f5fa925c8 --- web/src/pages/ConfigErrors.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/pages/ConfigErrors.jsx b/web/src/pages/ConfigErrors.jsx index b47655415b..b7a85d0741 100644 --- a/web/src/pages/ConfigErrors.jsx +++ b/web/src/pages/ConfigErrors.jsx @@ -69,5 +69,5 @@ class ConfigErrorsPage extends React.Component { export default connect(state => ({ tenant: state.tenant, - configErrors: state.configErrors + configErrors: state.configErrors.errors }))(ConfigErrorsPage)