Skip to content

Commit

Permalink
Fix for #1546 [packages-only]
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi749 committed Sep 5, 2024
1 parent e1e8da1 commit e623c34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Sjekk ut [release notes](./releasenotes/1.9.0.md) for høydepunkter og mer detal
- Rettet et problem med visningskolonner i aggregerte oversikter [#1447](https://github.com/Puzzlepart/prosjektportalen365/issues/1447)
- Rettet et problem hvor tillatelseskonfigurasjon feilet dersom man ikke er eier på hub [#1549](https://github.com/Puzzlepart/prosjektportalen365/issues/1549)
- Rettet et problem hvor provisjonering av dokumentbibliotek bare hentet 100 elementer [#1547](https://github.com/Puzzlepart/prosjektportalen365/issues/1547)
- Rettet et problem hvor opprettelse av statusrapporter feilet dersom URL-felt var i bruk [#1546](https://github.com/Puzzlepart/prosjektportalen365/issues/1546)

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ export const createFieldValueMap = (): Map<string, (value: EditableSPFieldValue)
[
'URL',
({ value }) => {
const [url, description] = value.split(', ')
return { url, description }
try {
const url = value['Url']
const description = value['Description']
return { url, description }
} catch (error) {
throw new Error(`Feil ved mapping av URL felt: ${error}`)
}
}
],
['TaxonomyFieldType', ({ value }) => value.split(';').map((v) => ({ key: v, name: v }))],
Expand Down

0 comments on commit e623c34

Please sign in to comment.