Skip to content

Commit

Permalink
fix: use saved visualization in interpretation modal (#551)
Browse files Browse the repository at this point in the history
* fix: use saved visualization in interpretation modal

* chore: enable debug logging on semantic release GHA step
  • Loading branch information
HendrikThePendric authored Aug 26, 2024
1 parent d31979f commit 6e42b92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/components/InterpretationModal/InterpretationModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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(() => {
Expand Down

0 comments on commit 6e42b92

Please sign in to comment.