FIX: ability to import an exported query (#37)

FIX: ability to import an exported query (#37)

diff --git a/assets/javascripts/discourse/components/json-file-uploader.js.es6 b/assets/javascripts/discourse/components/json-file-uploader.js.es6
index b9fb599..706e9c7 100644
--- a/assets/javascripts/discourse/components/json-file-uploader.js.es6
+++ b/assets/javascripts/discourse/components/json-file-uploader.js.es6
@@ -18,7 +18,7 @@ export default Ember.Component.extend({
     const fileInput = this.element.querySelector("#js-file-input");
     this.set("fileInput", fileInput);
 
-    $(fileInput).on("change", () => this.fileSelected(this.files));
+    $(fileInput).on("change", () => this.fileSelected(fileInput.files));
 
     $this.on("dragover", e => {
       if (e.preventDefault) e.preventDefault();

GitHub sha: 7193d11e