Skip to content

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nlaffey committed Jun 27, 2017
1 parent 5296285 commit 77f7644
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dist/react-json-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ var ReactJsonSchema = function () {
}, {
key: 'resolveComponent',
value: function resolveComponent(schema) {
var _componentMap = this.getComponentMap();
var componentMap = this.getComponentMap();
var Component = null;
if (schema.hasOwnProperty('component')) {
if (schema.component === Object(schema.component)) {
Component = schema.component;
} else if (_componentMap && _componentMap[schema.component]) {
Component = _componentMap[schema.component];
} else if (componentMap && componentMap[schema.component]) {
Component = componentMap[schema.component];
} else if (_react.DOM.hasOwnProperty(schema.component)) {
Component = schema.component;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-json-schema",
"version": "1.0.0",
"version": "1.0.1",
"description": "Write component schema in JSON; parse to create react elements.",
"keywords": [
"react",
Expand Down
11 changes: 11 additions & 0 deletions react-json-schema.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/dist" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

0 comments on commit 77f7644

Please sign in to comment.