Skip to content

Commit

Permalink
Bugfix for URL type fields [skpi-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi749 committed Dec 2, 2024
1 parent 279acff commit c84ee84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
- feat/ideamodule
paths:
- 'SharePointFramework/**'
- 'Install/**'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export const createFieldValueMap = (): Map<string, (value: EditableSPFieldValue)
'URL',
({ value }) => {
try {
const url = value['Url']
const description = value['Description']
const url = value?.['Url']
const description = value?.['Description']
return { url, description }
} catch (error) {
throw new Error(`Feil ved mapping av URL felt: ${error}`)
Expand Down

0 comments on commit c84ee84

Please sign in to comment.