We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddee366 commit 6d8e063Copy full SHA for 6d8e063
src/Input.js
@@ -14,9 +14,7 @@ class Input {
14
this.createdAt = data.created_at || data.createdAt;
15
this.imageUrl = data.data.image.url;
16
this.concepts = new Concepts(_config, data.data.concepts);
17
- if (data.data.regions) {
18
- this.regions = new Regions(_config, data.data.regions);
19
- }
+ this.regions = new Regions(_config, data.data.regions || []);
20
this.score = data.score;
21
this.metadata = data.data.metadata;
22
if (data.data.geo && data.data.geo['geo_point']) {
0 commit comments