Skip to content

Commit

Permalink
Fix issues with 'CreateParentProject' and 'ChildProjectAdmin' buttons #…
Browse files Browse the repository at this point in the history
…1412 [skip-ci]
  • Loading branch information
Remi749 committed Mar 24, 2024
1 parent 88125bc commit e2621ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Sjekk ut [release notes](./releasenotes/1.9.0.md) for høydepunkter og mer detal
- Rettet et problem hvor dynamisk endring av prosjektforside via fasevelger ikke fungerte [#1481](https://github.com/Puzzlepart/prosjektportalen365/issues/1481)
- Rettet et problem hvor noen underområder ikke var klikkbare i administrasjon av underområder webdel [#1468](https://github.com/Puzzlepart/prosjektportalen365/issues/1468)
- Rettet et problem hvor URL til KUR-side ble feil ved godkjenning av en idè [#1393](https://github.com/Puzzlepart/prosjektportalen365/issues/1393)
- Rettet et problem hvor `Gjør om til overordnet prosjekt` knapp ble igjen etter omgjøringen og at `Administrer underområder` knapp ikke lengre var synlig [#1412](https://github.com/Puzzlepart/prosjektportalen365/issues/1412)

### Forbedringer

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createReducer, current } from '@reduxjs/toolkit'
import { SPFxContext } from 'pp365-shared-library'
import { ItemFieldValue, SPFxContext } from 'pp365-shared-library'
import { useMemo, useReducer } from 'react'
import { IProjectInformationState } from '../types'
import {
Expand Down Expand Up @@ -42,7 +42,7 @@ const createProjectInformationReducer = (spfxContext: SPFxContext) =>
.addCase(INIT_DATA, (state, action) => {
state.data = action.payload.state.data
state.properties = action.payload.state.properties
state.isParentProject = action.payload.state.isParentProject
state.isParentProject = action.payload.state.data.fieldValues.get<ItemFieldValue>('GtIsParentProject')?.value
state.userHasEditPermission = action.payload.state.userHasEditPermission
state.properties = createProperties(current(state) as IProjectInformationState, spfxContext)
state.isDataLoaded = true
Expand Down

0 comments on commit e2621ee

Please sign in to comment.