File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1364,8 +1364,9 @@ class AbstractView extends React.PureComponent<AbstractViewProps, {}> {
1364
1364
? selection . selectionSet . selections
1365
1365
: [ ]
1366
1366
: [ ] ;
1367
+
1367
1368
return (
1368
- < div >
1369
+ < div className = { `graphiql-explorer- ${ implementingType . name } ` } >
1369
1370
< span
1370
1371
style = { { cursor : 'pointer' } }
1371
1372
onClick = { selection ? this . _removeFragment : this . _addFragment } >
@@ -1464,7 +1465,9 @@ class FragmentView extends React.PureComponent<FragmentViewProps, {}> {
1464
1465
checked = { ! ! selection }
1465
1466
styleConfig = { this . props . styleConfig }
1466
1467
/>
1467
- < span style = { { color : styleConfig . colors . def } } >
1468
+ < span
1469
+ style = { { color : styleConfig . colors . def } }
1470
+ className = { `graphiql-explorer-${ this . props . fragment . name . value } ` } >
1468
1471
{ this . props . fragment . name . value }
1469
1472
</ span >
1470
1473
</ span >
@@ -1743,7 +1746,8 @@ class FieldView extends React.PureComponent<
1743
1746
1744
1747
const applicableFragments =
1745
1748
isObjectType ( type ) || isInterfaceType ( type ) || isUnionType ( type )
1746
- ? this . props . availableFragments [ type . name ]
1749
+ ? this . props . availableFragments &&
1750
+ this . props . availableFragments [ type . name ]
1747
1751
: null ;
1748
1752
1749
1753
const node = (
You can’t perform that action at this time.
0 commit comments