Skip to content

Commit

Permalink
Renamed defaultFrom from json to js to prevent babel from ignoring th…
Browse files Browse the repository at this point in the history
…e file.
  • Loading branch information
ledsoft committed Aug 22, 2016
1 parent 8588b28 commit cbac882
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "semforms",
"version": "0.0.1",
"version": "0.0.2",
"description": "Semantic forms generator and processor",
"keywords": [
"react",
Expand Down
2 changes: 1 addition & 1 deletion src/model/DefaultFormGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default class DefaultFormGenerator {
* @param rootQuestion Optional, contains root question with data for the default form template
*/
static generateForm(rootQuestion) {
var formTemplate = require('./defaultForm.json');
var formTemplate = require('./defaultForm');
// Deep copy of the form template to prevent modifications
formTemplate = JSON.parse(JSON.stringify(formTemplate));
if (!rootQuestion) {
Expand Down
2 changes: 1 addition & 1 deletion src/model/defaultForm.json → src/model/defaultForm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
module.exports = {
"@graph": [
{
"@type": "http://onto.fel.cvut.cz/ontologies/documentation/question",
Expand Down

0 comments on commit cbac882

Please sign in to comment.