diff --git a/src/components/App.js b/src/components/App.js index 3281b35ca..ad8f5d169 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -360,8 +360,9 @@ const App = () => { } } } - - dispatch(acAddMetadata(optionSetsMetadata)) + if (Object.keys(optionSetsMetadata).length) { + dispatch(acAddMetadata(optionSetsMetadata)) + } } const addTrackedEntityTypeMetadata = (visualization) => {