Skip to content

Commit

Permalink
Added missing HttpClient/Response
Browse files Browse the repository at this point in the history
  • Loading branch information
gretchunkim authored Dec 12, 2023
1 parent d817730 commit 23467d7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { IECBProps } from './IECBProps';
import { IEmployeeListViewProps } from './IEmployeeListViewProps';
import { IEmployeeListViewState } from './IEmployeeListViewState';

import { SPHpttClient, SPHttpClientResponse } from "@microsoft/sp-http";

export default class EmployeeListView extends React.Component<IEmployeeListViewProps, IEmployeeListViewState> {
private items : IListItem[];

Expand Down Expand Up @@ -103,7 +105,7 @@ export default class EmployeeListView extends React.Component<IEmployeeListViewP
// var self: EmployeeListView = this;
// const apiUrl = `${this.props.siteUrl}/_api/web/lists/GetByTitle('Employees')/Items?$select=Firstname,Lastname,Street,StreetNo,Salary,EmployeeLocation/Title&$expand=EmployeeLocation`;
// this.props.spHttpClient.get(apiUrl, SPHttpClient.configurations.v1)
// .then((response: HttpClientResponse) => {
// .then((response: SPHttpClientResponse) => {
// return response.json();
// })
// .then((response: { value: IListItem[] }): void => {
Expand Down

0 comments on commit 23467d7

Please sign in to comment.