Skip to content

Commit

Permalink
Fix a bug where namespace filter is incorrect for the jobs list
Browse files Browse the repository at this point in the history
  • Loading branch information
DingoEatingFuzz committed Mar 8, 2018
1 parent 4e0489a commit df54b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/app/controllers/jobs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default Controller.extend(Sortable, Searchable, {
'system.namespaces.length',
function() {
const hasNamespaces = this.get('system.namespaces.length');
const activeNamespace = this.get('system.activeNamespace.id');
const activeNamespace = this.get('system.activeNamespace.id') || 'default';

return this.get('model')
.filter(job => !hasNamespaces || job.get('namespace.id') === activeNamespace)
Expand Down

0 comments on commit df54b6b

Please sign in to comment.