From 31f5d13a69c9ac43873c64a1470ce257be75f5d6 Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Wed, 6 Mar 2019 12:19:55 -0500 Subject: [PATCH] Initialize paginate queryset with an empty object --- awx/ui/client/features/jobs/jobsList.controller.js | 2 +- awx/ui/client/features/projects/projectsList.controller.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/ui/client/features/jobs/jobsList.controller.js b/awx/ui/client/features/jobs/jobsList.controller.js index 620173cbc4..ed52036ba7 100644 --- a/awx/ui/client/features/jobs/jobsList.controller.js +++ b/awx/ui/client/features/jobs/jobsList.controller.js @@ -28,7 +28,7 @@ function ListJobsController ( // smart-search const name = 'jobs'; const iterator = 'job'; - let paginateQuerySet = null; + let paginateQuerySet = {}; let launchModalOpen = false; let refreshAfterLaunchClose = false; diff --git a/awx/ui/client/features/projects/projectsList.controller.js b/awx/ui/client/features/projects/projectsList.controller.js index c9f4ac95cf..8b995589c6 100644 --- a/awx/ui/client/features/projects/projectsList.controller.js +++ b/awx/ui/client/features/projects/projectsList.controller.js @@ -13,7 +13,7 @@ function projectsListController ( ) { const vm = this || {}; const [ProjectModel] = resolvedModels; - let paginateQuerySet = null; + let paginateQuerySet = {}; $scope.canAdd = ProjectModel.options('actions.POST'); vm.strings = strings;