Handle null values

This commit is contained in:
Chi Vinh Le
2017-08-18 21:59:43 +07:00
parent 833e78f99a
commit 0cbf6e24f7
@@ -50,6 +50,11 @@ function withWarnings(component, queryData) {
// Show warnings when accessing queryData only when not in production.
return mapValues(queryData, (value, key) => {
// Keep null values..
if (!queryData[key]) {
return queryData[key];
}
return new Proxy(queryData[key], {
get(target, name) {