diff options
Diffstat (limited to 'src/data')
| -rw-r--r-- | src/data/cacheable-object.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/data/cacheable-object.js b/src/data/cacheable-object.js index 0071c60d..f63fe4bd 100644 --- a/src/data/cacheable-object.js +++ b/src/data/cacheable-object.js @@ -50,7 +50,10 @@ export default class CacheableObject { if (!flags.update) continue; if (typeof update === 'object' && update !== null && 'default' in update) { - validatePropertyValue(property, null, update.default, update); + if (update.validate) { + validatePropertyValue(property, null, update.default, update); + } + this.prototype[CacheableObject.updateValue][property] = update.default; } else { this.prototype[CacheableObject.updateValue][property] = null; |