Skip to content

Commit

Permalink
require and dependsOn in Relationships
Browse files Browse the repository at this point in the history
Corrects a bug regarding the dependsOn/require options interaction in Relationship Fields (follows the enhancement of keystonejs/keystone#2200)
  • Loading branch information
Nico264 authored Jun 26, 2018
1 parent d34f456 commit 4e27b7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fields/types/relationship/RelationshipType.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ relationship.prototype.addToSchema = function (schema) {
var def = {
type: this._nativeType,
ref: this.options.ref,
index: (this.options.index ? true : false),
required: (this.options.required ? true : false),
unique: (this.options.unique ? true : false),
index: (this.options.index ? this.options.index : false),
required: (this.options.required ? this.options.required : false),
unique: (this.options.unique ? this.options.unique : false),
};
this.paths = {
refList: this.options.refListPath || this.path + 'RefList',
Expand Down

0 comments on commit 4e27b7b

Please sign in to comment.