mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Remove '--arg state "$state"' from tasks filter when $state is not set
This commit is contained in:
parent
50a5fa17ca
commit
d4c11ec5eb
2
psu
2
psu
@ -1042,7 +1042,7 @@ tasks() {
|
||||
echo "$tasks" | jq -jc "$filter_status | $filter_exclude_job_auto_detection | sort_by(.CreatedAt) | reverse | unique_by(.Slot)"
|
||||
fi
|
||||
else
|
||||
echo "$tasks" | jq --arg state "$state" -jc 'sort_by(.CreatedAt) | reverse | unique_by(.Slot)'
|
||||
echo "$tasks" | jq -jc 'sort_by(.CreatedAt) | reverse | unique_by(.Slot)'
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user