mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix so that it is really possible to pass null to disable transformation in validators.
This commit is contained in:
@@ -549,7 +549,7 @@ Meteor.Collection.ObjectID = LocalCollection._ObjectID;
|
||||
if (!(options[name] instanceof Function)) {
|
||||
throw new Error(allowOrDeny + ": Value for `" + name + "` must be a function");
|
||||
}
|
||||
if (self._transform)
|
||||
if (self._transform && options.transform !== null)
|
||||
options[name].transform = self._transform;
|
||||
if (options.transform)
|
||||
options[name].transform = Deps._makeNonreactive(options.transform);
|
||||
|
||||
Reference in New Issue
Block a user