Skip to content

Commit

Permalink
Do not check the shared_schema for equality comparison but rather the…
Browse files Browse the repository at this point in the history
… root schema. Resolves ept#14
  • Loading branch information
mhuff authored and Micah Huff committed Sep 26, 2013
1 parent 52fb933 commit 58f5cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ AvroDoc.Schema = function (avrodoc, shared_types, schema_json, filename) {

if (_(shared_types).has(qualified_name)) {
shared_schema = _(shared_types[qualified_name]).find(function (shared_schema) {
return _(new_type).isEqual(typeEssence(shared_schema));
return _(new_type).isEqual(typeEssence(schema));
});
} else {
shared_types[qualified_name] = [];
Expand Down

0 comments on commit 58f5cdb

Please sign in to comment.