Skip to content

Commit

Permalink
convert {null|*} from isValidValue function to valueType: [null, *], p…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jul 19, 2019
1 parent ea0f963 commit d97d005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/common/model/TermCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ define( function( require ) {
validators: [
{ valueType: TermCreator },
{ valueType: Term },
{ isValidValue: value => ( value instanceof Event || value === null ) } // {Event|null}
{ valueType: [ Event, null ] }
]
} );

Expand Down

0 comments on commit d97d005

Please sign in to comment.