{"action":"opened","issue":{"url":"https://api.github.com/repos/ukrbublik/react-awesome-query-builder/issues/39","repository_url":"https://api.github.com/repos/ukrbublik/react-awesome-query-builder","labels_url":"https://api.github.com/repos/ukrbublik/react-awesome-query-builder/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/ukrbublik/react-awesome-query-builder/issues/39/comments","events_url":"https://api.github.com/repos/ukrbublik/react-awesome-query-builder/issues/39/events","html_url":"https://github.com/ukrbublik/react-awesome-query-builder/issues/39","id":320484736,"number":39,"title":"how to update fields data from database at <Query> component?","user":{"login":"xufanghui","id":1429094,"avatar_url":"https://avatars0.githubusercontent.com/u/1429094?v=4","gravatar_id":"","url":"https://api.github.com/users/xufanghui","html_url":"https://github.com/xufanghui","followers_url":"https://api.github.com/users/xufanghui/followers","following_url":"https://api.github.com/users/xufanghui/following{/other_user}","gists_url":"https://api.github.com/users/xufanghui/gists{/gist_id}","starred_url":"https://api.github.com/users/xufanghui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xufanghui/subscriptions","organizations_url":"https://api.github.com/users/xufanghui/orgs","repos_url":"https://api.github.com/users/xufanghui/repos","events_url":"https://api.github.com/users/xufanghui/events{/privacy}","received_events_url":"https://api.github.com/users/xufanghui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-05T06:36:28Z","updated_at":"2018-05-05T06:36:28Z","closed_at":null,"author_association":"NONE","body":"Hi,I like you component.I want to update field data from database at <Query> component,But\r\nexception:\r\n\r\nreact-dom.development.js:244 Uncaught TypeError: Cannot read property 'type' of undefined\r\n    at _validateValue (tree.js:357)\r\n    at setValue (tree.js:533)\r\n    at tree.js:635\r\n    at dispatch (createStore.js:165)\r\n    at Object.setValue (stuff.js:28)\r\n    at Object.RuleContainer._this.setValue (RuleContainer.js:73)\r\n    at WidgetContainer._this._setValue (WidgetContainer.js:98)\r\n    at Object.NumberWidget._this.handleChange [as onChange] (Number.js:68)\r\n    at Object.setValue (mixin.js:140)\r\n    at Object.onBlur (mixin.js:93)\r\n    at HTMLUnknownElement.callCallback (react-dom.development.js:104)\r\n    at Object.invokeGuardedCallbackDev (react-dom.development.js:142)\r\n    at Object.invokeGuardedCallback (react-dom.development.js:191)\r\n    at Object.invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:205)\r\n    at executeDispatch (react-dom.development.js:470)\r\n    at executeDispatchesInOrder (react-dom.development.js:492)\r\n    at executeDispatchesAndRelease (react-dom.development.js:590)\r\n    at executeDispatchesAndReleaseTopLevel (react-dom.development.js:601)\r\n    at forEachAccumulated (react-dom.development.js:571)\r\n    at runEventsInBatch (react-dom.development.js:732)\r\n    at runExtractedEventsInBatch (react-dom.development.js:741)\r\n    at handleTopLevel (react-dom.development.js:4198)\r\n    at batchedUpdates (react-dom.development.js:12510)\r\n    at batchedUpdates (react-dom.development.js:1943)\r\n    at dispatchEvent (react-dom.development.js:4279)\r\n    at interactiveUpdates (react-dom.development.js:12565)\r\n    at interactiveUpdates (react-dom.development.js:1962)\r\n    at dispatchInteractiveEvent (react-dom.development.js:4256)\r\n\r\nmy query config:\r\nfields:{}, \r\nother config is not changed from demo,\r\n\r\n<Query\r\n                       {...query_config}\r\n                       fields={this.state.from_db_fields}\r\n                      //you can pass object here, see treeJSON at onChange\r\n                      //value=transit.fromJSON(treeJSON)\r\n                          get_children={this.getChildren}\r\n>\r\n\r\nthis.state.from_db_fields had data from database.\r\nplease help .\r\nhow to update fields data from database at <Query> component?\r\nThanks your see!"}}
{"actor":{"display_login":"xufanghui"}}