Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5044a19

Browse files
harshithpabbatiacao
authored andcommittedJun 28, 2020
chore: add only the fields which are deprecated to deprecation list
1 parent e613744 commit 5044a19

File tree

1 file changed

+2
-2
lines changed
  • packages/graphiql/src/components/DocExplorer

1 file changed

+2
-2
lines changed
 

‎packages/graphiql/src/components/DocExplorer/TypeDoc.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ export default class TypeDoc extends React.Component<
108108
</div>
109109
);
110110

111-
const deprecatedFields = fields.filter(field =>
112-
'isDeprecated' in field ? field.isDeprecated : true,
111+
const deprecatedFields = fields.filter(
112+
field => 'isDeprecated' in field && field.isDeprecated,
113113
);
114114
if (deprecatedFields.length > 0) {
115115
deprecatedFieldsDef = (

0 commit comments

Comments
 (0)
Please sign in to comment.