From 6e42b9264e71b95a0a45b65cfde5846061883519 Mon Sep 17 00:00:00 2001 From: Hendrik de Graaf Date: Mon, 26 Aug 2024 15:29:41 +0200 Subject: [PATCH] fix: use saved visualization in interpretation modal (#551) * fix: use saved visualization in interpretation modal * chore: enable debug logging on semantic release GHA step --- .github/workflows/release.yml | 1 + src/components/InterpretationModal/InterpretationModal.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8619173e5..648d0a5e2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,6 +40,7 @@ jobs: run: npx semantic-release env: GITHUB_TOKEN: ${{ secrets.DHIS2_BOT_GITHUB_TOKEN }} + DEBUG: '@semantic-release/commit-analyzer' - name: Publish to AppHub run: yarn run d2-app-scripts publish diff --git a/src/components/InterpretationModal/InterpretationModal.js b/src/components/InterpretationModal/InterpretationModal.js index f3ddcbe2a..ac7bd92bc 100644 --- a/src/components/InterpretationModal/InterpretationModal.js +++ b/src/components/InterpretationModal/InterpretationModal.js @@ -5,7 +5,7 @@ import { import PropTypes from 'prop-types' import React, { useState, useEffect } from 'react' import { useSelector } from 'react-redux' -import { sGetCurrent } from '../../reducers/current.js' +import { sGetVisualization } from '../../reducers/visualization.js' import { ModalDownloadDropdown } from '../DownloadMenu/index.js' import { Visualization } from '../Visualization/Visualization.js' import { @@ -16,7 +16,7 @@ import { const InterpretationModal = ({ onInterpretationUpdate }) => { const { interpretationId, initialFocus } = useInterpretationQueryParams() const [isVisualizationLoading, setIsVisualizationLoading] = useState(false) - const visualization = useSelector(sGetCurrent) + const visualization = useSelector(sGetVisualization) const { currentUser } = useCachedDataQuery() useEffect(() => {