diff options
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/cacheable-object.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/data/cacheable-object.js b/src/data/cacheable-object.js index 4a89b774..71dc5bde 100644 --- a/src/data/cacheable-object.js +++ b/src/data/cacheable-object.js @@ -132,7 +132,11 @@ export default class CacheableObject { return; } - if ('default' in update) { + if ( + typeof update === 'object' && + update !== null && + 'default' in update + ) { this[property] = update?.default; } else { this[property] = null; |