Skip to content

Commit

Permalink
Merge pull request #21 from sanity-io/release
Browse files Browse the repository at this point in the history
fix: remove unneeded comments
  • Loading branch information
jjburbridge authored Jan 2, 2025
2 parents 57c4cb4 + 57d3d9a commit 29e3e4c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/components/VariantPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,5 @@ export const VariantPreview = (props: PreviewProps) => {
subtitle: typeof value === 'string' ? value : '',
}

// exp not stored agaisnt variant
// "title":coalesce(select(title.experimentValue == $experiment && defined(title.variants[variantId == $variant][0]) => title.variants[variantId == $variant][0].value, null), title.default),

// exp stored agaisnt variant
// "title":coalesce(title.variants[experimentId == $experiment && variantId == $variant][0].value, title.default, title),

// exp and var stored as _key
// "title":coalesce(title.variants[_key == $experiment+':'+$variant][0].value, title.default),

// console.log('new props', previewProps)
return props.renderDefault(previewProps)
}

0 comments on commit 29e3e4c

Please sign in to comment.