You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be an error with the DiscoverFeedResponseUser class. When I want to get the user from an item of the ig.feed.discover().items() there is a difference between what the autocompletion tells me and the real object when I console.log it. This problem force me to use the (item as any).user to get the user from the item.
Code
// I'm using a service injection here but // `this.instagramService` it can be referred as `ig`asyncinitializeSniffer(){constdiscoverPage=this.instagramService.feed.discover();constitems=awaitdiscoverPage.items();(items[0]asany).user;// <-- This is the problem}
Error and Output
This is what I got when I print items[0] in the console.
The text was updated successfully, but these errors were encountered:
Bug Report
Read the Notes and fill out the form.
Form
Put an
[x]
if you meet the condition, else leave[ ]
.Requirements
DEBUG
variable.Platform
21.7.3
Description
There seems to be an error with the DiscoverFeedResponseUser class. When I want to get the user from an item of the
ig.feed.discover().items()
there is a difference between what the autocompletion tells me and the real object when I console.log it. This problem force me to use the(item as any).user
to get the user from the item.Code
Error and Output
This is what I got when I print
items[0]
in the console.The text was updated successfully, but these errors were encountered: