Skip to content

Commit

Permalink
fix a bug introduced in recent commit
Browse files Browse the repository at this point in the history
  • Loading branch information
TymurGubayev committed Nov 7, 2023
1 parent 5ac5b9c commit 11393bc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gui/job-details.lua
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,16 @@ local function GetHeader(iobj, items, i, is_active_job)
end

function JobDetails:initListChoices()
local job_items = self.job.items
local job_items
local items = {}
local is_active_job = false
if self:isManagerOrder() then
if not job_items then
if not self.job.items then
self.list:setChoices({})
return
end

job_items = self.job.items
else
is_active_job = true

Expand All @@ -274,6 +276,8 @@ function JobDetails:initListChoices()
items[idx] = (items[idx] or 0) + 1
end
end

job_items = self.job.job_items
end

local headers = {}
Expand Down

0 comments on commit 11393bc

Please sign in to comment.