Skip to content

Commit

Permalink
fix case of daysrange missing when coming from permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
boogheta committed Sep 10, 2021
1 parent db666a6 commit f659f84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hyphe_frontend/app/views/prepareCrawls.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ angular.module('hyphe.preparecrawlsController', [])
$scope.scheduling = true
var queriesBatcher = new QueriesBatcher()
$scope.list.forEach(function (obj) {
// Stack the query
if (obj.webentity.webarchives && obj.webentity.webarchives.days_range === 'infinity') {
if (obj.webentity.webarchives && (!obj.webentity.webarchives.days_range || obj.webentity.webarchives.days_range === 'infinity')) {
obj.webentity.webarchives.days_range = $scope.infinityRange / 2
}
// Stack the query
queriesBatcher.addQuery(
api.crawl // Query call
,{ // Query settings
Expand Down

0 comments on commit f659f84

Please sign in to comment.