mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Handle null values
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user