Skip to content

Commit

Permalink
fix: fix typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
JulissaDantes committed Jul 24, 2024
1 parent feef618 commit 108ec20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/devtools/src/schema/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,10 @@ export class SchemaParser {
immutableFields: Array.from(
new Set(
Object.keys(object.properties)
.filter((key) => object.properties[key].immutable === true || object.properties[key].item && object.properties[key].item.immutable)
.filter((key) => {
const property = object.properties[key];
return property.immutable === true || ('item' in property && property.item && property.item.immutable)
})
.concat(inheritedImmutableFields),
),
),
Expand Down

0 comments on commit 108ec20

Please sign in to comment.