Skip to content

Commit d307558

Browse files
rynobaxhuv1k
authored andcommitted
Make tab name input always controlled (graphql#851)
1 parent 1046e3c commit d307558

File tree

1 file changed

+1
-1
lines changed
  • packages/graphql-playground-react/src/components/Playground

1 file changed

+1
-1
lines changed

packages/graphql-playground-react/src/components/Playground/Tab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Tab extends React.PureComponent<Props & ReduxProps, State> {
6666
</Icons>
6767
{this.state.editingName ? (
6868
<OperationNameInput
69-
value={session.name}
69+
value={session.name || ''}
7070
onChange={this.handleEditName}
7171
onBlur={this.stopEditName}
7272
onKeyDown={this.handleKeyDown}

0 commit comments

Comments
 (0)