Skip to content

Commit

Permalink
Fixed weird filter behavior at Overview
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesús Ángel committed Nov 16, 2018
1 parent 0c52dbf commit 3cbfa06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion public/controllers/overview/overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,11 @@ export class OverviewController {

if (this.tab === newTab && !force) return;

const sameTab = this.tab === newTab && force !== 'nav';
const sameTab =
((this.tab === newTab && this.tabHistory.length < 2) ||
(this.tabHistory.length === 2 &&
this.tabHistory[0] === this.tabHistory[1])) &&
force !== 'nav';

// Restore force value if we come from md-nav action
if (force === 'nav') force = false;
Expand Down

0 comments on commit 3cbfa06

Please sign in to comment.