From 62998c10a2a6772152e7a2985547c9ebb991fd5e Mon Sep 17 00:00:00 2001 From: erezrokah Date: Thu, 29 Apr 2021 18:26:34 +0400 Subject: [PATCH] fix: update query API --- src/ParentWidget.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ParentWidget.js b/src/ParentWidget.js index e37bfc99..db112885 100644 --- a/src/ParentWidget.js +++ b/src/ParentWidget.js @@ -160,9 +160,7 @@ export class ParentControl extends React.Component { const { forID, query, collection } = this.props; const collectionName = collection.get('name'); const { - payload: { - response: { hits = [] }, - }, + payload: { hits = [] }, } = await query(forID, collectionName, ['path'], ''); const options = this.getOptions(hits);