Skip to content

Commit

Permalink
[desk-tool] Provide fallback for missing urlParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 24, 2019
1 parent 7f5c2d3 commit 835f1a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/desk-tool/src/utils/withInitialValue.js
Expand Up @@ -102,7 +102,7 @@ function getInitialValueProps(document, props) {
}

const {template: definedTemplate} = props.options
const {template: urlTemplate, ...urlParameters} = props.urlParameters
const {template: urlTemplate, ...urlParameters} = props.urlParameters || {}

if (urlTemplate && definedTemplate && definedTemplate !== urlTemplate) {
// eslint-disable-next-line no-console
Expand Down

0 comments on commit 835f1a8

Please sign in to comment.