From 0cbf6e24f77c64b56208f2313cabe7c93445a6b3 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Fri, 18 Aug 2017 21:59:43 +0700 Subject: [PATCH] Handle null values --- client/coral-framework/helpers/plugins.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/coral-framework/helpers/plugins.js b/client/coral-framework/helpers/plugins.js index 8fc3310e6..57caf2c46 100644 --- a/client/coral-framework/helpers/plugins.js +++ b/client/coral-framework/helpers/plugins.js @@ -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) {