Skip to content

Commit f84a360

Browse files
committed
Ensure input remains controlled on Gist detail page
1 parent 12702e0 commit f84a360

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/Gist.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ class Gist extends Component {
9494
super(props);
9595

9696
const gist = this.props.gist || {};
97-
const { description, files } = gist;
97+
const {
98+
description = '',
99+
files = []
100+
} = gist;
98101

99102
this.state = {
100103
description,

0 commit comments

Comments
 (0)