Skip to content

Commit 86867c3

Browse files
Resolving changes requested by alex dated 25/06/2023
1 parent 950807c commit 86867c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/SPService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ export default class SPService implements ISPService {
740740
/**
741741
* Gets the collection of view for a selected list
742742
*/
743-
public async getViews(listId?: string, _orderBy?: orderBy, filter?: string): Promise<ISPViews> {
743+
public async getViews(listId?: string, orderby?: orderBy, filter?: string): Promise<ISPViews> {
744744
if (listId === undefined || listId === "") {
745745
return this.getEmptyViews();
746746
}
@@ -749,9 +749,9 @@ export default class SPService implements ISPService {
749749
let queryUrl: string = `${this._webAbsoluteUrl}/_api/lists(guid'${listId}')/Views?$select=Title,Id`;
750750

751751
// Check if the orderBy property is provided
752-
if (_orderBy !== null) {
752+
if (orderby !== null) {
753753
queryUrl += '&$orderby=';
754-
switch (_orderBy) {
754+
switch (orderby) {
755755
case orderBy.Id:
756756
queryUrl += 'Id';
757757
break;

0 commit comments

Comments
 (0)