File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -740,7 +740,7 @@ export default class SPService implements ISPService {
740
740
/**
741
741
* Gets the collection of view for a selected list
742
742
*/
743
- public async getViews ( listId ?: string , _orderBy ?: orderBy , filter ?: string ) : Promise < ISPViews > {
743
+ public async getViews ( listId ?: string , orderby ?: orderBy , filter ?: string ) : Promise < ISPViews > {
744
744
if ( listId === undefined || listId === "" ) {
745
745
return this . getEmptyViews ( ) ;
746
746
}
@@ -749,9 +749,9 @@ export default class SPService implements ISPService {
749
749
let queryUrl : string = `${ this . _webAbsoluteUrl } /_api/lists(guid'${ listId } ')/Views?$select=Title,Id` ;
750
750
751
751
// Check if the orderBy property is provided
752
- if ( _orderBy !== null ) {
752
+ if ( orderby !== null ) {
753
753
queryUrl += '&$orderby=' ;
754
- switch ( _orderBy ) {
754
+ switch ( orderby ) {
755
755
case orderBy . Id :
756
756
queryUrl += 'Id' ;
757
757
break ;
You can’t perform that action at this time.
0 commit comments