Skip to content

Commit e758f25

Browse files
author
Waley Chen
committed
Merge pull request #222 from 10gen/INT-843-zero-state-on-selected-collection
INT-843 - zero state shown on selected collection after refreshing collection list
2 parents 1e52539 + fa6765a commit e758f25

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/home/index.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,14 @@ var HomeView = View.extend({
6363
this.renderSubview(new TourView(), this.queryByHook('tour-container'));
6464
},
6565
onInstanceFetched: function() {
66-
if (app.instance.collections.length === 0) {
67-
this.showNoCollectionsZeroState = true;
68-
} else {
69-
this.showDefaultZeroState = true;
70-
}
7166
if (!this.ns) {
7267
app.instance.collections.unselectAll();
68+
69+
if (app.instance.collections.length === 0) {
70+
this.showNoCollectionsZeroState = true;
71+
} else {
72+
this.showDefaultZeroState = true;
73+
}
7374
} else {
7475
this.showCollection(app.instance.collections.get(this.ns));
7576
}

src/home/index.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
display: flex;
9292
overflow: hidden;
9393
height: 100vh;
94-
margin-top: -168px; // total computed header + .refine-view-container height
95-
padding-top: 168px; // total computed header + .refine-view-container height
94+
margin-top: -155px; // total computed header + .refine-view-container height
95+
padding-top: 155px; // total computed header + .refine-view-container height
9696
position: relative;
9797
width: 100%;
9898
}

0 commit comments

Comments
 (0)