Skip to content

Commit

Permalink
Merge pull request #2410 from graphcommerce-org/fix/GCOM-1527
Browse files Browse the repository at this point in the history
Allow attributes with deprecationReasons (e.g. custom attributes) as PropertyPicker value (GCOM-1527)
  • Loading branch information
paales authored Nov 8, 2024
2 parents 81ace02 + 2a425b3 commit 1a6d15c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/violet-radios-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/hygraph-dynamic-rows-ui': patch
---

Allow attributes with deprecationReasons (e.g. custom attributes) as PropertyPicker value
2 changes: 1 addition & 1 deletion packages/hygraph-dynamic-rows-ui/lib/getFieldPaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function getFieldPaths(
type.fields.forEach((field) => {
const t = getType(field.type)

if (!types.includes(t.name) && !field.deprecationReason) {
if (!types.includes(t.name)) {
const newTypes = [...types, t.name]

const newPath = new FieldPath(field, prevPath)
Expand Down

0 comments on commit 1a6d15c

Please sign in to comment.