TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
hari avula
NA
101
15.6k
I am getting promise error when i am returning pnpjs in spfx webpart.
Jul 23 2020 6:26 AM
I am getting data from sharepoint list using pnpjs and adding it to table. here when i am returning this pnp js getting below error.
Please find the below code for the same.
private
async getListData(){
return
await pnp.sp.web.lists.getByTitle(
"EmployeeDetails"
).items.select().
get
().then(allitems=>{
return
allitems.map(val=>{
<tr key={val.ID}>
<td>{val.Title}</td>
<td>{val.PhoneNumber}</td>
<td>{val.Address}</td>
<td>{val.Department}</td>
</tr>
});
});
}
Reply
Answers (
1
)
how to set x-axis scale measurement
GetUrlKeyValue Method issue