Skip to content

Commit 9c0d728

Browse files
author
Robert Jackson
committed
Fix issue with uploading file (not parsing JSON).
1 parent be423b8 commit 9c0d728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default Ember.Controller.extend({
1616
let reader = new FileReader();
1717
reader.onload = (e) => {
1818
var contents = e.target.result;
19-
this.set('graphData', contents);
19+
this.set('graphData', JSON.parse(contents));
2020
};
2121

2222
reader.readAsText(event.target.files[0]);

0 commit comments

Comments
 (0)