Fix undefined listItem
This commit is contained in:
parent
60cd3649bf
commit
3c8f4bf6fd
|
@ -35,12 +35,14 @@ This is an application that supports Feedback through a web part that can be use
|
|||
Solution|Author(s)
|
||||
--------|---------
|
||||
react-feedback | Perry Kankam
|
||||
react-feedback | Abderahman Moujahid
|
||||
|
||||
## Version history
|
||||
|
||||
Version|Date|Comments
|
||||
-------|----|--------
|
||||
1.0|December 15, 2020|Initial release
|
||||
1.0.0|December 15, 2020|Initial release
|
||||
1.0.1|March 3, 2021|Fix undefined listItem
|
||||
|
||||
## Disclaimer
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"solution": {
|
||||
"name": "feedback-webpart-client-side-solution",
|
||||
"id": "d5e255e1-7071-49a8-b50d-b06c80e4ac02",
|
||||
"version": "1.0.0.0",
|
||||
"version": "1.0.1.0",
|
||||
"includeClientSideAssets": true,
|
||||
"isDomainIsolated": false,
|
||||
"developer": {
|
||||
|
|
|
@ -50,7 +50,7 @@ export default class FeedbackWebPart extends BaseWebPart<IFeedbackWebPartProps>
|
|||
buttonLabel: escape(this.properties.buttonLabel),
|
||||
showCategory: showCategory,
|
||||
themeVariant: this.themeVariant,
|
||||
listitemid: this.context.pageContext.listItem.id, //Replace with "1" if you're running this in a workbench
|
||||
listitemid: !!this.context.pageContext.listItem ? this.context.pageContext.listItem.id : null,
|
||||
selectedCategory: escape(this.properties.feedbackCategory),
|
||||
currentUser: this.context.pageContext.user
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue